Home > classes > @miir > set.m

set

PURPOSE ^

SET an miir object property.

SYNOPSIS ^

function f = set(f, varargin)

DESCRIPTION ^

 SET an miir object property.
   
   >> f = set(f, property, value);
 
 M Hewitson 30-01-07
 
 $Id: set.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 f = set(f, varargin)
0002 
0003 % SET an miir object property.
0004 %
0005 %   >> f = set(f, property, value);
0006 %
0007 % M Hewitson 30-01-07
0008 %
0009 % $Id: set.html,v 1.1 2007/06/08 14:15:06 hewitson Exp $
0010 %
0011 
0012 propArgin = varargin;
0013 while length(propArgin) >= 2
0014   prop = propArgin{1};
0015   val  = propArgin{2};
0016   propArgin = propArgin(3:end);
0017   switch prop
0018     case 'name'
0019       f.name = val;
0020     case 'version'
0021       f.version = val;
0022     case 'created'
0023       f.created = val;
0024     case 'fs'
0025       f.fs = val;
0026     case 'ntaps'
0027       f.ntaps = val;
0028     case 'a'
0029       f.a = val;
0030     case 'b'
0031       f.b = val;
0032     case 'g'
0033       f.g = val;
0034     case 'infile'
0035       f.infile = val;
0036     case 'histin'
0037       f.histin = val;
0038     case 'histout'
0039       f.histout = val;
0040     case 'plist'
0041       f.plist = val;
0042     otherwise
0043       error([prop, ' is not a valid miir property.']);
0044   end
0045 end

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