www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgpointconstraint/char.m

    function s = char(obj)
%CHAR Get a string representation of the item
%
%  S = CHAR(OBJ) returns a string that represents the object. 

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


if isStaticMode(obj)
    s = getStaticData(obj, 'char_return');
else
    if isvalid(obj.ConExpression)
        s = obj.ConExpression.char;
    else
        s = '<No constraint set>';
    end
end