Home > classes > @tsdata > display.m

display

PURPOSE ^

DISPLAY implement terminal display for tsdata object.

SYNOPSIS ^

function display(tsdatas)

DESCRIPTION ^

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function display(tsdatas)
0002 
0003 % DISPLAY implement terminal display for tsdata object.
0004 %
0005 %
0006 % M Hewitson 31-01-07
0007 %
0008 % $Id: display.html,v 1.1 2007/06/08 14:15:08 hewitson Exp $
0009 %
0010 for i=1:length(tsdatas)
0011   ts = tsdatas(i);
0012   banner = sprintf('-------- tsdata %02d ------------', i);
0013   disp(banner);
0014 
0015   disp(' ')
0016   
0017   tdata = get(ts, 't');
0018   xdata = get(ts, 'x');
0019   tinfo = whos('tdata');
0020   xinfo = whos('xdata');
0021   
0022   disp(sprintf('  name:  %s', get(ts, 'name')));
0023   disp(sprintf('    fs:  %g', get(ts, 'fs')));
0024   disp(sprintf('     t:  [%d %d], %s', tinfo.size(1), tinfo.size(2), tinfo.class));
0025   disp(sprintf('     x:  [%d %d], %s', xinfo.size(1), xinfo.size(2), xinfo.class));
0026   disp(sprintf('xunits:  %s', get(ts, 'xunits')));
0027   disp(sprintf('yunits:  %s', get(ts, 'yunits')));
0028   disp(sprintf(' nsecs:  %d', get(ts, 'nsecs')));
0029   disp(sprintf('    t0:  %s', get(ts, 't0')));
0030 
0031   bannerEnd = [];
0032   while length(bannerEnd) < length(banner)
0033     bannerEnd = [bannerEnd '-'];
0034   end
0035   disp(bannerEnd);
0036 
0037   disp(' ')
0038   disp(' ')
0039 end
0040 
0041 % END

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