Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@miremotion/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 MIRemotion object | |
3 % and return the updated object | |
4 | |
5 propertyArgIn = varargin; | |
6 %dim = e.dim; | |
7 dimdata = e.dimdata; | |
8 activity_fact = e.activity_fact; | |
9 valence_fact = e.valence_fact; | |
10 tension_fact = e.tension_fact; | |
11 %classes = e.class; | |
12 classdata = e.classdata; | |
13 happy_fact = e.happy_fact; | |
14 sad_fact = e.sad_fact; | |
15 tender_fact = e.tender_fact; | |
16 anger_fact = e.anger_fact; | |
17 fear_fact = e.fear_fact; | |
18 d = mirdata(e); | |
19 d = set(d,'Title',get(e,'Title'),'Abs',get(e,'Abs'),'Ord',get(e,'Ord')); | |
20 while length(propertyArgIn) >= 2, | |
21 prop = propertyArgIn{1}; | |
22 val = propertyArgIn{2}; | |
23 propertyArgIn = propertyArgIn(3:end); | |
24 switch prop | |
25 case 'DimData' | |
26 dimdata = val; | |
27 case 'ClassData' | |
28 classdata = val; | |
29 case 'ActivityFactors' | |
30 activity_fact = val; | |
31 case 'ValenceFactors' | |
32 valence_fact = val; | |
33 case 'TensionFactors' | |
34 tension_fact = val; | |
35 case 'HappyFactors' | |
36 happy_fact = val; | |
37 case 'SadFactors' | |
38 sad_fact = val; | |
39 case 'TenderFactors' | |
40 tender_fact = val; | |
41 case 'AngerFactors' | |
42 anger_fact = val; | |
43 case 'FearFactors' | |
44 fear_fact = val; | |
45 otherwise | |
46 d = set(d,prop,val); | |
47 end | |
48 end | |
49 ee.dim = e.dim; | |
50 ee.dimdata = dimdata; | |
51 ee.activity_fact = activity_fact; | |
52 ee.valence_fact = valence_fact; | |
53 ee.tension_fact = tension_fact; | |
54 ee.class = e.class; | |
55 ee.classdata = classdata; | |
56 ee.happy_fact = happy_fact; | |
57 ee.sad_fact = sad_fact; | |
58 ee.tender_fact = tender_fact; | |
59 ee.anger_fact = anger_fact; | |
60 ee.fear_fact = fear_fact; | |
61 ee = class(ee,'miremotion',d); |