www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@modelinput/display.m
function display(obj) %DISPLAY % Copyright 2007 The MathWorks, Inc. % get the spacing right isLoose = strcmp(get(0,'FormatSpacing'),'loose'); if isLoose disp(' ') end if ~isempty(inputname(1)) disp([inputname(1), ' = ']) else disp('ans = ') end % generate string for constraint str = char( obj.Object ); b = blanks( size( str, 1 ) ); disp( [ b', b', b', str ] ) if isLoose disp(' ') end