www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtablenode/loadobj.m
function Node = loadobj(Node) %LOADOBJ % % This function is called by MATLAB when a cgtablenode object is loaded. % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. if isstruct(Node) && (~isfield(Node, 'Version') || Node.Version<0) % Pre-version 1 upgrade? S = Node; Node = cgtablenode; Node.Data = []; Managers.InitialisationManager = []; Managers.FillManager = []; Managers.OptimisationManager = []; Node.Managers = Managers; Node.Version = 1; Node.InversionData = []; Node.cgcontainer = S.cgcontainer; end if Node.Version<1 % Some objects were incorrectly created with Version=0 in previous % loadobj versions. This may need to be corrected. Node.Version = 1; end if isstruct(Node) % Convert any outstanding structures using the constructor. Node = cgtablenode(Node); end