LTPDA_MAT2STR overloads the mat2str operator to set the precision at a central place. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: LTPDA_MAT2STR overloads the mat2str operator to set the precision at a central place. CALL: str = ltpda_mat2str(number); str = ltpda_mat2str(matrix); VERSION: $Id: ltpda_mat2str.m,v 1.1 2007/07/27 09:28:52 ingo Exp $ HISTORY: 26-07-2007 Diepholz Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function str = ltpda_mat2str(number) 0002 % LTPDA_MAT2STR overloads the mat2str operator to set the precision at a central place. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: LTPDA_MAT2STR overloads the mat2str operator to set the 0007 % precision at a central place. 0008 % 0009 % CALL: str = ltpda_mat2str(number); 0010 % str = ltpda_mat2str(matrix); 0011 % 0012 % VERSION: $Id: ltpda_mat2str.m,v 1.1 2007/07/27 09:28:52 ingo Exp $ 0013 % 0014 % HISTORY: 26-07-2007 Diepholz 0015 % Creation 0016 % 0017 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0018 0019 MAX_PRECISION = 25; 0020 0021 str = mat2str(number, MAX_PRECISION);