www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conbase/pSetVersionNumber.m

    function con = pSetVersionNumber(con, number)
%PSETVERSIONNUMBER Set the version number on a CONBASE object
%
%  CON = PSETVERSIONNUMBER(CON, NUMBER) sets the vversion number of CON to
%  NUMBER.
%
%  THIS METHOD SHOULD ONLY BE CALLED FROM THE LOADOBJ METHOD OF SUB-CLASS
%  OF CONBASE.
%
%  This method forms part of the load and upgrade process for child classes
%  on CONBASE. It allows an "intermediate" version of a sub-class to insist
%  on a corresponding intermediate version of its parent class and
%  therefore smoothly complete the upgrade process.
%
%  See also CONBASE, CONBASE/LOADOBJ, CONBASE/UPGRADE.

%  Copyright 2005 The MathWorks, Inc.

con.Version = number;

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|