GET get parameter properties. key = get(p, 'key'); val = get(p, 'val'); M Hewitson 30-01-07 $Id: get.html,v 1.1 2007/06/08 14:15:06 hewitson Exp $
0001 function val = get(p, propName) 0002 0003 % GET get parameter properties. 0004 % 0005 % key = get(p, 'key'); 0006 % val = get(p, 'val'); 0007 % 0008 % M Hewitson 30-01-07 0009 % 0010 % $Id: get.html,v 1.1 2007/06/08 14:15:06 hewitson Exp $ 0011 % 0012 0013 switch propName 0014 case 'key' 0015 val = p.key; 0016 case 'val' 0017 val = p.val; 0018 case 'version' 0019 val = p.version; 0020 otherwise 0021 error([propName, ' is not a valid param property.']); 0022 end