comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirenvelope/set.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function ee = set(e,varargin)
2 % SET Set properties for the MIRenvelope object
3 % and return the updated object
4
5 propertyArgIn = varargin;
6 ds = e.downsampl;
7 hw = e.hwr;
8 df = e.diff;
9 mt = e.method;
10 ph = e.phase;
11 t = mirtemporal(e);
12 t = set(t,'Title',get(e,'Title'),'Abs',get(e,'Abs'),'Ord',get(e,'Ord'));
13 while length(propertyArgIn) >= 2,
14 prop = propertyArgIn{1};
15 val = propertyArgIn{2};
16 propertyArgIn = propertyArgIn(3:end);
17 switch prop
18 case 'DownSampling'
19 ds = val;
20 case 'Halfwave'
21 hw = val;
22 case 'Diff'
23 df = val;
24 otherwise
25 t = set(t,prop,val);
26 end
27 end
28 ee.downsampl = ds;
29 ee.hwr = hw;
30 ee.diff = df;
31 ee.method = mt;
32 ee.phase = ph;
33 ee = class(ee,'mirenvelope',t);