www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@localusermod/get.m
function Value=get(m,Property) %GET get local user model properties % Value=get(m,Property) % Copyright 2000-2011 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin==1; Value= [{'userdefined'};get(m.localmod);get(m.xregmodel)]; else switch lower(Property) case {'userdefined','model'} m = copyToInternal(m); Value= m.userdefined; case 'internalmodel' Value= m.userdefined; case 'feat.index' Value= get(m.localmod,Property); if ~all(Value) %% match strings to find indices %% first get all RFs avaiable for this model class RFs=DatumDisplay(m,features(m)); RFdisp = {RFs.Display}; curRFs=get(m,'feat.disp'); for i = 1:length(curRFs) Value(i)=find( strcmp( curRFs{ i },RFdisp ) ); end %%check end otherwise [Value,Found]= get(m.localmod,Property); if ~Found Value=get(m.xregmodel,Property); end end end