Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirmfcc/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 ss = set(s,varargin) | |
2 % SET Set properties for the MIRspectrum object | |
3 % and return the updated object | |
4 | |
5 propertyArgIn = varargin; | |
6 dl = s.delta; | |
7 d = mirdata(s); | |
8 d = set(d,'Title',get(s,'Title'),'Abs',get(s,'Abs'),'Ord',get(s,'Ord')); | |
9 while length(propertyArgIn) >= 2, | |
10 prop = propertyArgIn{1}; | |
11 val = propertyArgIn{2}; | |
12 propertyArgIn = propertyArgIn(3:end); | |
13 switch prop | |
14 case 'Rank' | |
15 d = set(d,'Pos',val); | |
16 case 'Delta' | |
17 df = val; | |
18 otherwise | |
19 d = set(d,prop,val); | |
20 end | |
21 end | |
22 ss.delta = dl; | |
23 ss = class(ss,'mirmfcc',d); |