Mercurial > hg > camir-ismir2012
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirpitch/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 pp = set(p,varargin) | |
2 % SET Set properties for the MIRpitch object | |
3 % and return the updated object | |
4 | |
5 propertyArgIn = varargin; | |
6 a = p.amplitude; | |
7 s = mirscalar(p); | |
8 while length(propertyArgIn) >= 2, | |
9 prop = propertyArgIn{1}; | |
10 val = propertyArgIn{2}; | |
11 propertyArgIn = propertyArgIn(3:end); | |
12 switch prop | |
13 case 'Amplitude' | |
14 a = val; | |
15 otherwise | |
16 s = set(s,prop,val); | |
17 end | |
18 end | |
19 pp.amplitude = a; | |
20 pp = class(pp,'mirpitch',s); |