www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@fitalgorithm/display.m

    function display(OPT)
%DISPLAY command window display for FITALGORITHM object


%  Copyright 2006 The MathWorks, Inc. 

isLoose = strcmp(get(0,'FormatSpacing'),'loose');
if isLoose
   disp(' ')
end
if ~isempty(inputname(1))
    disp([inputname(1), ' = '])
else
    disp('ans = ')
end
if ~isempty(OPT.Object)
    disp(OPT)
    os= structprops(OPT);
    if ~isempty(os)
        disp(os);
    end
else
    disp(class(OPT))
end
if isLoose
   disp(' ')
end