Home > classes > @miir > string.m

string

PURPOSE ^

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

SYNOPSIS ^

function cmd = string(f)

DESCRIPTION ^

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

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

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

 CALL:        cmd = string(miir)

 INPUTS:      cmd  - IIR filter object

 OUTPUTS:     miir - command string to create the IIR filter object

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

 HISTORY:     29-03-2007 M Hewitson
                 Creation

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function cmd = string(f)
0002 % STRING writes a command string that can be used to recreate the input filter object.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: STRING writes a command string that can be used to recreate the
0007 %              input filter object.
0008 %
0009 % CALL:        cmd = string(miir)
0010 %
0011 % INPUTS:      cmd  - IIR filter object
0012 %
0013 % OUTPUTS:     miir - command string to create the IIR filter object
0014 %
0015 % VERSION:     $Id: string.m,v 1.2 2007/07/18 13:58:45 ingo Exp $
0016 %
0017 % HISTORY:     29-03-2007 M Hewitson
0018 %                 Creation
0019 %
0020 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0021 
0022 infile = get(f, 'infile');
0023 if ~isempty(infile)
0024   cmd = ['miir(''' infile ''')'];
0025 else
0026   pl = get(f, 'plist');
0027   cmd = ['miir(' string(pl) ')'];
0028 end
0029 
0030 
0031 
0032 % END

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