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

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

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




if nargin==1;
    Value= [{'fitparams'};get(m.localmod);get(m.xreg3xspline)];
else
    switch lower(Property)
        case 'fitparams'
            Value= m.fitparams;
        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
                try
                    Value=get(m.xreg3xspline,Property);
                catch
                    error(message('mbc:localbspline:InvalidProperty', Property));
                end
            end
    end
end