


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


0001 function display(singelem) 0002 %DISPLAY - displays the fields of a sing element 0003 % 0004 % echo function for 'singelem' class 0005 0006 disp(sprintf('\n%s = \n',inputname(1))); 0007 disp(sprintf(' type: %s',singelem.type)); 0008 disp(sprintf(' id: %i',singelem.id)); 0009 disp(sprintf(' material id: %i',singelem.matid)); 0010 disp(sprintf(' grid ids: %i %i',singelem.g(1))); 0011 disp(sprintf(' thickness: %g %g',singelem.h(1))); 0012 disp(sprintf(' drag coeff: %g',singelem.k));