0001 function txt = display(tsdatas)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 txt = {};
0022
0023 tsdatas = reshape(tsdatas, numel(tsdatas), 1);
0024
0025 for i=1:length(tsdatas)
0026 ts = tsdatas(i);
0027 banner = sprintf('-------- tsdata %02d ------------', i);
0028 txt{end+1} = banner;
0029
0030 txt{end+1} = ' ';
0031
0032 tdata = get(ts, 't');
0033 xdata = get(ts, 'x');
0034 tinfo = whos('tdata');
0035 xinfo = whos('xdata');
0036
0037 txt{end+1} = sprintf(' name: %s', get(ts, 'name'));
0038 txt{end+1} = sprintf(' fs: %g', get(ts, 'fs'));
0039 txt{end+1} = sprintf(' t: [%d %d], %s', tinfo.size(1), tinfo.size(2), tinfo.class);
0040 txt{end+1} = sprintf(' x: [%d %d], %s', xinfo.size(1), xinfo.size(2), xinfo.class);
0041 txt{end+1} = sprintf('xunits: %s', get(ts, 'xunits'));
0042 txt{end+1} = sprintf('yunits: %s', get(ts, 'yunits'));
0043 txt{end+1} = sprintf(' nsecs: %d', get(ts, 'nsecs'));
0044 txt{end+1} = sprintf(' t0: %s', char(get(ts, 't0')));
0045
0046 banner_end(1:length(banner)) = '-';
0047 txt{end+1} = banner_end;
0048
0049 txt{end+1} = ' ';
0050 txt{end+1} = ' ';
0051 end
0052
0053 if nargout == 0
0054 for ii=1:length(txt)
0055 disp(txt{ii});
0056 end
0057 end
0058
0059