Home > classes > @mfir > get.m

get

PURPOSE ^

GET get mfir properties.

SYNOPSIS ^

function val = get(varargin)

DESCRIPTION ^

 GET get mfir properties.

     get(f);
     val = get(f, property);
 
 M Hewitson 30-01-07
 
 $Id: get.m,v 1.1 2007/05/11 18:52:06 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = get(varargin)
0002 
0003 % GET get mfir properties.
0004 %
0005 %     get(f);
0006 %     val = get(f, property);
0007 %
0008 % M Hewitson 30-01-07
0009 %
0010 % $Id: get.m,v 1.1 2007/05/11 18:52:06 hewitson Exp $
0011 %
0012 
0013 switch nargin
0014   case 1
0015     f = varargin{1};
0016     disp(f);
0017     
0018   case 2
0019     f        = varargin{1};
0020     propName = varargin{2};
0021 
0022     switch propName
0023       case 'name'
0024         val = f.name;
0025       case 'fs'
0026         val = f.fs;
0027       case 'ntaps'
0028         val = f.ntaps;
0029       case 'a'
0030         val = f.a;
0031       case 'gd'
0032         val = f.gd;
0033       case 'g'
0034         val = f.g;
0035       case 'histout'
0036         val = f.histout;
0037       case 'infile'
0038         val = f.infile;
0039       case 'created'
0040         val = f.created;
0041       case 'version'
0042         val = f.version;
0043       case 'plist'
0044         val = f.plist;
0045       otherwise
0046         error([propName, ' is not a valid mfir property.']);
0047     end
0048   otherwise
0049     error('### too many input arguments.');
0050 end

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