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.2 2007/07/18 13:58: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.2 2007/07/18 13:58:45 ingo Exp $
0012 %
0013 % HISTORY:     02-04-2007 M Hewitson
0014 %                 Creation
0015 %
0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0017 
0018 name  = get(p, 'name');
0019 gain  = get(p, 'gain');
0020 poles = get(p, 'poles');
0021 zeros = get(p, 'zeros');
0022 
0023 pl = plist();
0024 pl = append(pl, param('name', name));
0025 pl = append(pl, param('gain', gain));
0026 pl = append(pl, param('poles', poles));
0027 pl = append(pl, param('zeros', zeros));
0028 cmd = ['pzmodel(' string(pl) ')'];
0029 
0030 
0031 
0032 % END

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