Home > classes > @specwin > get.m

get

PURPOSE ^

GET get specwin object properties.

SYNOPSIS ^

function val = get(w, propName)

DESCRIPTION ^

 GET get specwin object properties.

     name = get(w, 'name');
     data = get(ao, 'data');
     hist = get(ao, 'history');
 
 M Hewitson 30-01-07
 
 $Id: get.html,v 1.1 2007/06/08 14:15:07 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = get(w, propName)
0002 
0003 % GET get specwin object properties.
0004 %
0005 %     name = get(w, 'name');
0006 %     data = get(ao, 'data');
0007 %     hist = get(ao, 'history');
0008 %
0009 % M Hewitson 30-01-07
0010 %
0011 % $Id: get.html,v 1.1 2007/06/08 14:15:07 hewitson Exp $
0012 %
0013 
0014 switch propName
0015   case 'name'
0016     val = w.name;
0017   case 'alpha'
0018     val = w.alpha;
0019   case 'psll'
0020     val = w.psll;
0021   case 'rov'
0022     val = w.rov;
0023   case 'nenbw'
0024     val = w.nenbw;
0025   case 'w3db'
0026     val = w.w3db;
0027   case 'flatness'
0028     val = w.flatness;
0029   case 'ws'
0030     val = w.ws;
0031   case 'ws2'
0032     val = w.ws2;
0033   case 'nfft'
0034     val = w.nfft;
0035   case 'win'
0036     val = w.win;
0037   case 'created'
0038     val = w.created;
0039   otherwise
0040     error([propName, ' is not a valid specwin property.']);
0041 end

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