www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregfittree/setsplitable.m
function varargout = setsplitable( Tree, panel, state ) %SETSPLITABLE Set the splitable state of the a panel % % SETSPLITABLE(T,PANEL,STATE) sets the splitable state, either true or false, % of the given PANEL. % % See also XREGFITTREE. % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. if any( Tree.Children(panel,:) ~= 0 ), warning(message('mbc:xregfittree:InvalidState1')); end Tree.Splitable(panel) = logical( state ); if nargout == 1, varargout{1} = Tree; elseif isvarname( inputname(1) ), assignin( 'caller', inputname(1), Tree ); end %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|