


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


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