www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mctree/teval.m
function varargout= teval(T,func,varargin) %TEVAL Evaluate function on tree node. % % VARARGOUT = TEVAL(T,'FUNC',VARARGIN) % If there are no output arguments then it is assumed that the function % output is a tree and the dynamic copy of the tree is updated. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargout==0 T=feval(func,T,varargin{:}); pointer(T); else [varargout{1:nargout}]= feval(func,T,varargin{:}); end