www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@modeldev/makechildren.m
function child_MD= makechildren(MD,OpenDialog) %MAKECHILDREN Make children for this modeldev node % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin < 2 OpenDialog=0; end m= MD.Model; p=address(MD); % model dpt children child_MD= modeldev(m,p,OpenDialog); % children info changed MD= p.info; s= status(MD); if strcmp(class(MD),'modeldev') && s==2 && numChildren(MD)==1 % select best model MD.BestModel= child_MD; child_MD.status(s); pointer(MD); end