display method for slice overlay object $Id: display.m,v 1.1 2005/04/20 15:05:36 matthewbrett Exp $
0001 function display(obj) 0002 % display method for slice overlay object 0003 % 0004 % $Id: display.m,v 1.1 2005/04/20 15:05:36 matthewbrett Exp $ 0005 0006 X = struct(obj); 0007 src = ['[slice overlay object]']; 0008 if isequal(get(0,'FormatSpacing'),'compact') 0009 disp([inputname(1) ' =']); 0010 disp(src); 0011 disp(X) 0012 else 0013 disp(' ') 0014 disp([inputname(1) ' =']); 0015 disp(' '); 0016 disp(src); 0017 disp(' '); 0018 disp(X) 0019 end