Home > classes > @pzmodel > string.m

string

PURPOSE ^

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

SYNOPSIS ^

function cmd = string(p)

DESCRIPTION ^

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

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

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

 CALL:        cmd = string(pzmodel)

 VERSION:     $Id: string.m,v 1.4 2007/10/22 12:06:45 ingo Exp $

 HISTORY:     02-04-2007 M Hewitson
                 Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function cmd = string(p)
0002 % STRING writes a command string that can be used to recreate the input pzmodel object.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: STRING writes a command string that can be used to recreate
0007 %              the input pzmodel object.
0008 %
0009 % CALL:        cmd = string(pzmodel)
0010 %
0011 % VERSION:     $Id: string.m,v 1.4 2007/10/22 12:06:45 ingo Exp $
0012 %
0013 % HISTORY:     02-04-2007 M Hewitson
0014 %                 Creation
0015 %
0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0017 
0018 pl = plist();
0019 fields = fieldnames(p);
0020 for ii = 1:length(fields)
0021   field = fields{ii};
0022   pl = append(pl, field, p.(field));
0023 end
0024 
0025 cmd = ['pzmodel(' string(pl) ')'];
0026 
0027 
0028 
0029 % END

Generated on Thu 01-Nov-2007 09:42:34 by m2html © 2003