Home > classes > @mfir > 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(mfir)

 VERSION:     $Id: string.m,v 1.2 2007/07/18 13:58:44 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(mfir)
0010 %
0011 % VERSION:     $Id: string.m,v 1.2 2007/07/18 13:58:44 ingo Exp $
0012 %
0013 % HISTORY:     29-03-2007 M Hewitson
0014 %                 Creation
0015 %
0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0017 
0018 infile = get(f, 'infile');
0019 if ~isempty(infile)
0020   cmd = ['mfir(''' infile ''')'];
0021 else
0022   pl = get(f, 'plist');
0023   cmd = ['mfir(' string(pl) ')'];
0024 end
0025 
0026 
0027 
0028 % END

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