


CHAR convert a param object into a string. M Hewitson 04-02-07 $Id: char.html,v 1.2 2007/07/10 05:37:11 hewitson Exp $


0001 function pstr = char(p) 0002 0003 % CHAR convert a param object into a string. 0004 % 0005 % M Hewitson 04-02-07 0006 % 0007 % $Id: char.html,v 1.2 2007/07/10 05:37:11 hewitson Exp $ 0008 % 0009 0010 if isnumeric(get(p, 'val')) 0011 pstr = [get(p, 'key') ' : ' num2str(get(p, 'val'))]; 0012 else 0013 pstr = [get(p, 'key') ' : ' char(get(p, 'val'))]; 0014 end 0015 0016 0017 0018 % END