www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@linearmodelparameters/pGetStepwiseStatus.m
function val = pGetStepwiseStatus(obj, val) %PGETSTEPWISESTATUS Private get function. % % STEPWISESTATUS = PGETSTEPWISESTATUS( MDL, STEPWISESTATUS ) % % This is a private function that should not be called directly. % Copyright 2004-2005 The MathWorks, Inc. persistent enum if isempty(enum) enum = findtype('xregmodelparameters.linearmodel.stepwisestatus'); end m = obj.Object; if isobject(m) % Get status from the model status = getstatus(m); % Re-index into the values [dummy, index] = ismember(status, enum.Values); val = enum.Strings(index); val= val( termorder(m) ); end