Home > classes > @zero > string.m

string

PURPOSE ^

STRING writes a command string that can be used to recreate the input zero object.

SYNOPSIS ^

function cmd = string(ps)

DESCRIPTION ^

 STRING writes a command string that can be used to recreate the input zero object.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: STRING writes a command string that can be used to recreate the
              input zero object.

 CALL:        cmd = string (zero);

 VERSION:     $Id: string.m,v 1.3 2007/07/18 13:58:45 ingo Exp $

 HISTORY:     02-04-2007 Hewitson
                 Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function cmd = string(ps)
0002 % STRING writes a command string that can be used to recreate the input zero object.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: STRING writes a command string that can be used to recreate the
0007 %              input zero object.
0008 %
0009 % CALL:        cmd = string (zero);
0010 %
0011 % VERSION:     $Id: string.m,v 1.3 2007/07/18 13:58:45 ingo Exp $
0012 %
0013 % HISTORY:     02-04-2007 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 ' zero(' string(pl) ')'];
0026 end
0027 cmd = [cmd ']'];
0028 
0029 
0030 % END

Generated on Mon 03-Sep-2007 12:12:34 by m2html © 2003