Home > classes > @pzmodel > string.m

string

PURPOSE ^

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

SYNOPSIS ^

function cmd = string(p)

DESCRIPTION ^

 STRING writes a command string that can be used to recreate the input
 pzmodel object.
 
 M Hewitson 02-04-07
 
 $Id: string.html,v 1.1 2007/06/08 14:15:07 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003