


APPEND a parameter to the parameter list.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: APPEND a parameter to the parameter list.
CALL : pl = append(pl,p);
pl = append(pl,pl);
VERSION: $Id: append.html,v 1.2 2007/07/10 05:37:11 hewitson Exp $
HISTORY: 30-01-07 M Hewitson
Creation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0001 function pl = append(pl, param) 0002 % APPEND a parameter to the parameter list. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: APPEND a parameter to the parameter list. 0007 % 0008 % CALL : pl = append(pl,p); 0009 % pl = append(pl,pl); 0010 % 0011 % VERSION: $Id: append.html,v 1.2 2007/07/10 05:37:11 hewitson Exp $ 0012 % 0013 % HISTORY: 30-01-07 M Hewitson 0014 % Creation 0015 % 0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0017 0018 if isa(param, 'param') 0019 pl.params = [pl.params param]; 0020 elseif isa(param, 'plist') 0021 pl.params = [pl.params param.params]; 0022 else 0023 error('### only parameter lists and parameters can append to a parameter list.'); 0024 end 0025 0026 % END