comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirmfcc/set.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
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);