www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@conbase/display.m
function display( c ) %DISPLAY The display method for CONBASE objects. % DISPLAY(C) displays the constraint C. % % See also CONBASE, CONBASE/TOSTRING. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. % get the spacing right if isequal( get( 0, 'FormatSpacing' ), 'compact' ), blankline = ''; else blankline = ' '; end % generate string for constraint str = tostring( c ); b = blanks( size( str, 1 ) ); % display string disp( blankline ); disp( [ inputname(1), ' =' ] ); disp( blankline ); disp( [ b', b', b', str ] ) %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|