www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@coninputfactor/display.m
function display(cif) %DISPLAY The display method for the CONINPUTFACTOR class. % % DISPLAY(CIF) % % See also CONBASE, CONINPUTFACTOR. % Copyright 2004-2005 The MathWorks, Inc. % get the spacing right if isequal( get( 0, 'FormatSpacing' ), 'compact' ) blankline = ''; else blankline = ' '; end % generate string for constraint str = char( cif ); b = blanks( size( str, 1 ) ); % display string disp( blankline ); disp( [ inputname(1), ' =' ] ); disp( blankline ); disp( [ b', b', b', str ] ) %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|