Home > classes > @miir > get.m

get

PURPOSE ^

GET get miir properties.

SYNOPSIS ^

function val = get(varargin)

DESCRIPTION ^

 GET get miir properties.

     get(f);
     val = get(f, property);
 
 M Hewitson 30-01-07
 
 $Id: get.html,v 1.1 2007/06/08 14:15: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 miir properties.
0004 %
0005 %     get(f);
0006 %     val = get(f, property);
0007 %
0008 % M Hewitson 30-01-07
0009 %
0010 % $Id: get.html,v 1.1 2007/06/08 14:15: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 'b'
0032         val = f.b;
0033       case 'g'
0034         val = f.g;
0035       case 'histin'
0036         val = f.histin;
0037       case 'histout'
0038         val = f.histout;
0039       case 'infile'
0040         val = f.infile;
0041       case 'created'
0042         val = f.created;
0043       case 'version'
0044         val = f.version;
0045       case 'plist'
0046         val = f.plist;
0047       otherwise
0048         error([propName, ' is not a valid miir property.']);
0049     end
0050   otherwise
0051     error('### too many input arguments.');
0052 end

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