CHAR convert a timeformat object into a string. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: CHAR convert a timeformat object into a string. CALL: string = char(timeformat) VERSION: $Id: char.m,v 1.1 2007/08/03 12:13:05 ingo Exp $ HISTORY: 23-07-2007 Diepholz Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function pstr = char(tf) 0002 % CHAR convert a timeformat object into a string. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: CHAR convert a timeformat object into a string. 0007 % 0008 % CALL: string = char(timeformat) 0009 % 0010 % VERSION: $Id: char.m,v 1.1 2007/08/03 12:13:05 ingo Exp $ 0011 % 0012 % HISTORY: 23-07-2007 Diepholz 0013 % Creation 0014 % 0015 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0016 0017 if ~isempty(tf.format_str) 0018 pstr = tf.format_str; 0019 else 0020 pstr = num2str(tf.format_nr); 0021 end 0022 0023 % END