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

    function Value= get(L,Property)
%GET get local multiple model properties
%   Value=get(m,Property)

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

if nargin==1
   Value= [{'select';'autocoderange';'localmultilist'}; get(L.localmod) ; get(L.xregmulti) ];
else
    switch lower(Property)
        case 'select'
            Value= L.Select;
        case 'autocoderange'
            Value = L.AutoCodeRange;
        case 'localmultilist'
            mlist = get(L.xregmulti,'models');
            % get list as localmulti 
            for i=1:length(mlist)
                L.xregmulti = set(L.xregmulti,'allmodels',mlist(i));
                mlist{i}= L;
            end
            Value = mlist;
        case 'selectionstatistic'
            Value = L.SelectionStatistic;
            if isempty(Value)
                mlist = get(L.xregmulti,'models');
                Value = NaN(1,length(mlist));
            end
        case 'allfitted'
            Value = L.version>2;
        otherwise
            [Value,Found]= get(L.localmod,Property);
            if ~Found
                Value= get(L.xregmulti,Property);
            end
    end
end