www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgrangeconstraint/setBoundedExpression.m
function obj = setBoundedExpression(obj, pExpr) %SETBOUNDEDEXPRESSION Set the expression that will be bounded % % OBJ = SETBOUNDEDEXPRESSION(OBJ, pEXPR) sets the expression that will be % bounded in OBJ % % See also CGRANGECONSTRAINT/SETLOWERRHSEXPR, % CGRANGECONSTRAINT/SETUPPERRHSEXPR % Copyright 2006 The MathWorks, Inc. % Set the expression in the lower bound constraint obj.LowerBound.info = setlhsexpr(obj.LowerBound.info, pExpr); % Set the expression in the upper bound constraint obj.UpperBound.info = setlhsexpr(obj.UpperBound.info, pExpr); % Set the name of the internal pointers to reflect this change pSetInternalPtrsNames(obj);