www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgfuncmodel/display.m

    function display(f)
%DISPLAY  print description of object to command window
%
%  DISPLAY(OBJ) is called to display the contents of the object in the
%  command window.

%  Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


isLoose = strcmp(get(0,'FormatSpacing'),'loose');
if isLoose
    disp(' ')
end
s = getsymbols(f);
if ~isempty(s)
    args = sprintf('%s,', s{:});
    args = args(1:end-1);
else
    args = '';
end
disp([inputname(1), ' = '])
disp(['   F(' args '): ' f.func]);
if isLoose
    disp(' ')
end