


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


0001 function display(rgb) 0002 %DISPLAY - displays the fields of a rgb element 0003 % 0004 % echo function for 'rgb' class 0005 0006 disp(sprintf('\n%s = \n',inputname(1))); 0007 disp(sprintf(' grid: %i',rgb.grid)); 0008 disp(sprintf(' dof: %g',rgb.dof)); 0009 disp(sprintf(' value: %g',rgb.value));