Mercurial > hg > camir-aes2014
annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirautocor/get.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 function val = get(a, propName) |
wolffd@0 | 2 % GET Get properties from the MIRautocor object |
wolffd@0 | 3 % and return the value |
wolffd@0 | 4 |
wolffd@0 | 5 switch propName |
wolffd@0 | 6 case 'Coeff' |
wolffd@0 | 7 val = get(mirdata(a),'Data'); |
wolffd@0 | 8 case 'Delay' |
wolffd@0 | 9 val = get(mirdata(a),'Pos'); |
wolffd@0 | 10 case 'Lag' |
wolffd@0 | 11 val = get(mirdata(a),'Pos'); |
wolffd@0 | 12 case 'FreqDomain' |
wolffd@0 | 13 val = a.freq; |
wolffd@0 | 14 case 'OfSpectrum' |
wolffd@0 | 15 val = a.ofspectrum; |
wolffd@0 | 16 case 'Window' |
wolffd@0 | 17 val = a.window; |
wolffd@0 | 18 otherwise |
wolffd@0 | 19 val = get(mirdata(a),propName); |
wolffd@0 | 20 end |