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

    function mode = pInternalToExprCon(mode)
%PINTERNALTOEXPRCON Convert internal code to supply to bound constraint
%
%   MODE = PINTERNALTOEXPRCON(MODE) converts the CGRANGECONSTRAINT code
%   for constraint evaluation to the CGEXPRCONSTRAINT code for constraint
%   evaluation.

%   Copyright 2006 The MathWorks, Inc.

% Deal with the internal option
if strcmp(mode, 'internal')
    mode = 'input';
end
if mode == 2
    mode = 1;
end