Home > classes > @param > char.m

char

PURPOSE ^

CHAR convert a param object into a string.

SYNOPSIS ^

function pstr = char(p)

DESCRIPTION ^

 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 $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Wed 04-Jul-2007 19:03:10 by m2html © 2003