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

    function con = saveobj(con)
%SAVEOBJ Load filter for the abstract constraint class (CONBASE)
%
%  CON = SAVEOBJ(CON)
%
%  Checks the version of the constraint. If it is a cell array, this
%  methods sets the version to be the first element. This throws away any
%  fit options that might be stored in the version field of the constraint.
%  See LOADOBJ and LOADFITOPTIONS for more details.
%
%  See also CONBASE, SAVEOBJ,
%           CONBASE/LOADOBJ,
%           CONBASE/LOADFITOPTIONS.

%  Copyright 2002-2005 The MathWorks, Inc. and Ford Global Technologies, Inc.

if iscell( con.Version ),
    con.Version = con.Version{1};
end

%--------------------------------------------------------------------------
% EOF
%--------------------------------------------------------------------------