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

    function display(NF)
% cgnormfunction\display
% displays a description of the object

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



if strcmp(get(0 , 'FormatSpacing') , 'loose')
   str = ' ';
else
   str = '';
end

disp(str)
disp([inputname(1) ' =']);
disp(str)

if isempty(NF)
   disp('Empty or incomplete cgnormfunction Object');
elseif isempty(NF.Breakpoints)
   disp(['cgnormfunction object with no breakpoints']);
else
   M = NF.Values;
   [m,n]=size(M);
   disp(['cgnormfunction object with ' num2str(m) ' breakpoints.'])
end