STRING writes a command string that can be used to recreate the input pole object. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: STRING writes a command string that can be used to recreate the input pole object. CALL: cmd = string(pole); VERSION: $Id: string.m,v 1.3 2007/07/18 13:58:45 ingo Exp $ HISTORY: 02-04-2007 M Hewitson Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function cmd = string(ps) 0002 % STRING writes a command string that can be used to recreate the input pole object. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: STRING writes a command string that can be used to recreate the 0007 % input pole object. 0008 % 0009 % CALL: cmd = string(pole); 0010 % 0011 % VERSION: $Id: string.m,v 1.3 2007/07/18 13:58:45 ingo Exp $ 0012 % 0013 % HISTORY: 02-04-2007 M Hewitson 0014 % Creation 0015 % 0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0017 0018 cmd = '['; 0019 for j=1:length(ps) 0020 p = ps(j); 0021 f = get(p, 'f'); 0022 q = get(p, 'q'); 0023 0024 pl = plist([param('f', f) param('q', q)]); 0025 cmd = [cmd ' pole(' string(pl) ')']; 0026 end 0027 cmd = [cmd ']']; 0028 0029 % END