annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirenvelope/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(e, propName)
wolffd@0 2 % GET Get properties from the MIRenvelope object
wolffd@0 3 % and return the value
wolffd@0 4
wolffd@0 5 switch propName
wolffd@0 6 case 'DownSampling'
wolffd@0 7 val = e.downsampl;
wolffd@0 8 case 'Halfwave'
wolffd@0 9 val = e.hwr;
wolffd@0 10 case 'Diff'
wolffd@0 11 val = e.diff;
wolffd@0 12 case 'Phase'
wolffd@0 13 val = e.phase;
wolffd@0 14 otherwise
wolffd@0 15 val = get(mirtemporal(e),propName);
wolffd@0 16 end