www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgmodelnode/checknode.m

    function ok=checknode(nd);
%CHECKNODE  Load-time check of node contents
%
%  OUT=CHECKNODE(ND)

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


ok = checknode(nd.cgcontainer);
if ok
    mdlexpr=getdata(nd);
    mdl=mdlexpr.get('model');
    ok = checkmodel(mdl);
end