www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgrangeconstraint/getUpperEvaluationMode.m
function [mode, code] = getUpperEvaluationMode(obj) %GETUPPEREVALUATIONMODE Return current upper bound evaluation mode % % MODE = GETUPPEREVALUATIONMODE(OBJ, INPUT) returns a string that % indicates which function is currently being applied to the input on the % right hand side of the upper bound constraint. MODE will be one of % 'eval, 'constraint' or 'pev'. % % [MODE, CODE] = GETUPPEREVALUATIONMODE(OBJ, INPUT) also an integer % containing a numeric code between 0 and 2 that corresponds to the % settings listed above. % Copyright 2006 The MathWorks, Inc. % Get the evaluation mode for the lower bound constraints [mode, code] = getevaluationmode(obj.UpperBound.info, 'right');