www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conconvexhull/tostring.m
function ch = tostring(c) %TOSTRING -- Create string representation of constraint % % CH = TOSTRING(C, FACTORS) % % See also CONCONVEXHULL. % Copyright 2005 The MathWorks, Inc. fact = getSymbols( getActiveFactors( c ) ); ch = sprintf( 'ConvexHull(%s%', fact{1} ); for i = 2:length( fact ), ch = strcat( ch, sprintf( ',%s%', fact{i} ) ); end ch = strcat( ch, sprintf( '; %d faces) ', size( c.A, 1 ) ) ); %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|