www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@contable1/tostring.m
function ch=tostring(obj) %TOSTRING Create string representation of constraint % % STR = TOSTRING(CON) % % See also CONTABLE1 % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. cif = getActiveFactors( obj ); fact = getSymbols( cif ); if obj.le ch = sprintf('%s(%s) <= %smax', fact{[2, 1, 2]} ); else ch = sprintf('%s(%s) >= %smin', fact{[2, 1, 2]} ); end