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

    function display(p)
%DISPLAY command window display for MODELPROPERTIES 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
% get structure and display it
if ~isempty(p.Object)
    disp(p)
    ps= structprops(p);
    if ~isempty(ps)
        disp(ps);
    end
else
    disp(class(p))
end
if isLoose
   disp(' ')
end