comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirautocor/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 aa = set(a,varargin)
2 % SET Set properties for the MIRautocor object
3 % and return the updated object
4
5 propertyArgIn = varargin;
6 f = a.freq;
7 s = a.ofspectrum;
8 w = a.window;
9 nw = a.normalwindow;
10 d = mirdata(a);
11 d = set(d,'Title',get(a,'Title'),'Abs',get(a,'Abs'),'Ord',get(a,'Ord'));
12 while length(propertyArgIn) >= 2,
13 prop = propertyArgIn{1};
14 val = propertyArgIn{2};
15 propertyArgIn = propertyArgIn(3:end);
16 switch prop
17 case 'Coeff'
18 d = set(d,'Data',val);
19 case 'Delay'
20 d = set(d,'Pos',val);
21 case 'FreqDomain'
22 f = val;
23 case 'OfSpectrum'
24 s = val;
25 case 'Window'
26 w = val;
27 case 'LowRemoved'
28 lr = val;
29 otherwise
30 d = set(d,prop,val);
31 end
32 end
33 aa.freq = f;
34 aa.ofspectrum = s;
35 aa.window = w;
36 aa.normalwindow = nw;
37 aa = class(aa,'mirautocor',d);