0001 function txt = display(xydatas)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 txt = {};
0016
0017 xydatas = reshape(xydatas, numel(xydatas), 1);
0018
0019 for i=1:length(xydatas)
0020 xy = xydatas(i);
0021 banner = sprintf('-------- xydata %02d ------------', i);
0022 txt{end+1} = banner;
0023
0024 txt{end+1} = ' ';
0025
0026 xdata = get(xy, 'x');
0027 ydata = get(xy, 'y');
0028 xinfo = whos('xdata');
0029 yinfo = whos('ydata');
0030
0031 txt{end+1} = sprintf(' name: %s', get(xy, 'name'));
0032 txt{end+1} = sprintf(' x: [%d %d], %s', xinfo.size(1), xinfo.size(2), xinfo.class);
0033 txt{end+1} = sprintf(' y: [%d %d], %s', yinfo.size(1), yinfo.size(2), yinfo.class);
0034 txt{end+1} = sprintf('xunits: %s', get(xy, 'xunits'));
0035 txt{end+1} = sprintf('yunits: %s', get(xy, 'yunits'));
0036
0037 banner_end(1:length(banner)) = '-';
0038 txt{end+1} = banner_end;
0039
0040 txt{end+1} = ' ';
0041 txt{end+1} = ' ';
0042 end
0043
0044 if nargout == 0
0045 for ii=1:length(txt)
0046 disp(txt{ii});
0047 end
0048 end
0049
0050