www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgexprconstraint/private/pscaleoutput.m
function x = pscaleoutput(obj, x) %PSCALEOUTPUT Scale the distance measure % % X = PSCALEOUTPUT(OBJ, X) scales the constraint distance measure X so % that it is on the same scale as other constraints. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if obj.DistanceScale~=1 % Only need to scale when scale factor is not 1:1 x = x./obj.DistanceScale; end