www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@linearmodelparameters/pGetStepwiseSelection.m

    function val = pGetStepwiseSelection(obj, val)
%PGETSTEPWISESELECTION Private get function.
%
%   STEPWISESEL = PGETSTEPWISESELECTION( MDL, STEPWISESEL )
%
%   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.stepwiseselection');
end

m = obj.Object;
if isobject(m)
    % Get status from the model
    status = terms2(m);
    % Re-index into the values
    [dummy, index] = ismember(status, enum.Values);
    val = enum.Strings(index);
end