STRING writes a command string that can be used to recreate the input zero object. M Hewitson 02-04-07 $Id: string.html,v 1.1 2007/06/08 14:15:09 hewitson Exp $
0001 function cmd = string(ps) 0002 0003 % STRING writes a command string that can be used to recreate the input 0004 % zero object. 0005 % 0006 % M Hewitson 02-04-07 0007 % 0008 % $Id: string.html,v 1.1 2007/06/08 14:15:09 hewitson Exp $ 0009 % 0010 0011 cmd = '['; 0012 for j=1:length(ps) 0013 p = ps(j); 0014 f = get(p, 'f'); 0015 q = get(p, 'q'); 0016 0017 pl = plist([param('f', f) param('q', q)]); 0018 cmd = [cmd ' zero(' string(pl) ')']; 0019 end 0020 cmd = [cmd ']']; 0021 0022 0023 % END