www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregtwostage/get.m
function Value= get(TS,Property) %GET xregtwostage properties % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin==1 Value= {'Local','Global','Datum','DatumType','BaseGlobal','InternalLocal','InternalGlobal','InternalDatum',get(TS.xregmodel)}; return end switch lower(Property) case 'local' TSinternal = copyToInternal(TS); Value = TSinternal.Local; case 'internallocal' Value = TS.Local; case 'global' TS = copyToInternal(TS); Value = TS.Global; case 'internalglobal' Value = TS.Global; case 'datum' TS = copyToInternal(TS); Value = TS.datum; case 'internaldatum' Value = TS.datum; case 'baseglobal' if isempty(TS.Global) nl = nlfactors(TS); Inputs = getInputs(TS); Value = xregCreateModel(@xregcubic,Inputs(nl+1:end)); else TS = copyToInternal(TS); Value = TS.Global{1}; end case 'datumtype' Value= DatumType(TS.Local); otherwise try Value= get(TS.xregmodel,Property); catch error(message('mbc:xregtwostage:InvalidProperty', Property)) end end