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