


DISPLAY - displays the fields of a globalvector echo function for 'globalvector' class


0001 function display(globalvector) 0002 %DISPLAY - displays the fields of a globalvector 0003 % 0004 % echo function for 'globalvector' class 0005 0006 disp(sprintf('\n%s = \n',inputname(1))); 0007 0008 if ~isnan(globalvector.nrows), 0009 globalvector.vector 0010 else 0011 disp('globalvector object is empty'); 0012 end