Home > classes > @ao > display.m

display

PURPOSE ^

DISPLAY implement terminal display for analysis object.

SYNOPSIS ^

function display(ao)

DESCRIPTION ^

 DISPLAY implement terminal display for analysis object.
 
 
 M Hewitson 31-01-07
 
 $Id: display.html,v 1.1 2007/06/08 14:15:02 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function display(ao)
0002 
0003 % DISPLAY implement terminal display for analysis object.
0004 %
0005 %
0006 % M Hewitson 31-01-07
0007 %
0008 % $Id: display.html,v 1.1 2007/06/08 14:15:02 hewitson Exp $
0009 %
0010 
0011 si = size(ao);
0012 ao = reshape(ao, si(1)*si(2), 1);
0013 
0014 for i=1:length(ao)
0015   a = ao(i);
0016   banner = sprintf('-------- ao %02d ------------', i);
0017   disp(banner);
0018 
0019   disp(' ')
0020   
0021   data   = get(a, 'data');
0022   dinfo  = whos('data');
0023   hist   = get(a, 'hist');
0024   hinfo  = whos('hist');
0025   
0026   disp(sprintf('       tag:  %06d', get(a, 'tag')));
0027   disp(sprintf('      name:  %s', get(a, 'name')));
0028   disp(sprintf('provenance:  %s', char(get(a, 'provenance'))));
0029   disp(sprintf('   comment:  %s', char(get(a, 'comment'))));
0030   if isa(data, 'cell')
0031     disp(sprintf('      data:  None'));
0032   else
0033     disp(sprintf('      data:  %s / %s', dinfo.class, get(data, 'name')));
0034   end
0035   if isa(hist, 'cell')
0036     disp(sprintf('      hist:  None'));
0037   else
0038     disp(sprintf('      hist:  %s / %s / %s', hinfo.class, get(hist, 'name'), get(hist, 'version')));
0039   end
0040   disp(sprintf('     mfile:  %s', a.mfilename));
0041   bannerEnd = [];
0042   while length(bannerEnd) < length(banner)
0043     bannerEnd = [bannerEnd '-'];
0044   end
0045   disp(bannerEnd);
0046 
0047   disp(' ')
0048   disp(' ')
0049 end
0050 
0051 % END

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003