www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgoptimoutnode/cgoptimoutnode.m
function h = cgoptimoutnode(varargin) %CGOPTIMOUTNODE Construct a cgoptimoutputnode object % % h=cgoptimoutnode(name) constructs a cgoptimoutnode object. % h=cgoptimoutnode(structure) upgrades a structure passed from loadobj % % CGOPTIMOUTNODE inherits from CGCONTAINER % Copyright 2000-2006 The MathWorks, Inc. and Ford Global Technologies, Inc. loadstr=0; if nargin==0 loadstr=1; end if nargin==1 && isstruct(varargin{1}) % version update mechanism - fixes the input structure h=varargin{1}; t=h.cgcontainer; h=mv_rmfield(h,'cgcontainer'); loadstr = 1; else % construct a new object data = []; if nargin < 1 % Do nothing else data = varargin{1}; end h = struct('version', 5, ... 'Preserve', false); if ~loadstr t = cgcontainer(data, 'optimoutnode.bmp'); t = guid(t,'cgoptimoutput'); else t = cgcontainer; end end h = class(h,'cgoptimoutnode',t); if ~loadstr p = xregpointer(h); h = p.info; end