www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@localsurface/get.m

    function Value=get(m,Property)
%GET get local surface properties
%   Value=get(m,Property)

%  Copyright 2000-2011 The MathWorks, Inc. and Ford Global Technologies, Inc.



if nargin==1;
    Value= [{'model','internalmodel','order'}; get(m.localmod);get(m.xregmodel)];
else
    switch lower(Property)
        case 'model'
            m = copyToInternal(m);
            Value= m.userdefined;
        case 'internalmodel'
            Value= m.userdefined;
        case 'order'
            Value= get(m.userdefined,'order');
        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