www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgrangeconstraint/getBoundedEvaluationMode.m

    function [mode, code] = getBoundedEvaluationMode(obj)
%GETBOUNDEDEVALUATIONMODE Get the evaluation mode for the bounded expression
%
%   MODE = GETBOUNDEDEVALUATIONMODE(OBJ, INPUT) returns a string that
%   indicates which function is currently being applied to the bounded
%   expression in the range constraint. MODE will be one of 'eval,
%   'constraint' or 'pev'.
%
%   [MODE, CODE] = GETBOUNDEDEVALUATIONMODE(OBJ, INPUT) also an integer
%   containing a numeric code between 0 and 2 that corresponds to the
%   settings listed above.

%   See also CGRANGECONSTRAINT/SETBOUNDEDEVALUATIONMODE

%   Copyright 2006 The MathWorks, Inc.

% Get the evaluation mode for the bounded expression
[mode, code] = getevaluationmode(obj.LowerBound.info, 'left');