www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgexprconstraint/getDistanceScale.m

    function ds = getDistanceScale(obj)
%GETDISTANCESCALE Get the notional range of the object
%
%  DS = GETDISTANCESCALE(OBJ) returns the notional range of the object.
%  This is directly estimated from the expression held in the object.
%

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


ds = [-obj.DistanceScale, obj.DistanceScale];