www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgconstraint/char.m
function str = char(obj) %CHAR Return char description of expression % % S = CHAR(OBJ) % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. if isempty(getinputs(obj)) str = 'Empty constraint'; else inp = getinputs(obj); str = sprintf('%s <= 0', funcchar(inp(1).info)); end