www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@localsurface/set.m
function varargout=set(m,Property,Value) %SET set localsurface properties % m=set(m,Property,Value) % Copyright 2000-2011 The MathWorks, Inc. and Ford Global Technologies, Inc. switch lower(Property) case 'internalmodel' m.userdefined= Value; case 'model' m = copyToInternal(m); m.userdefined = copymodel(m.userdefined,Value); m = copyToExternal(m); otherwise [m.localmod,Found] =set(m.localmod,Property,Value); if ~Found m.xregmodel=set(m.xregmodel,Property,Value); end end if nargout==1 varargout{1}=m; else assignin('caller',inputname(1),m); end