Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@miremotion/get.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 val = get(a, propName) | |
2 % GET Get properties from the MIRemotion object | |
3 % and return the value | |
4 | |
5 switch propName | |
6 case 'Dim' | |
7 val = a.dim; | |
8 case 'Class' | |
9 val = a.class; | |
10 case 'DimData' | |
11 val = a.dimdata; | |
12 case 'ClassData' | |
13 val = a.classdata; | |
14 case 'ActivityFactors' | |
15 val = a.activity_fact; | |
16 case 'ValenceFactors' | |
17 val = a.valence_fact; | |
18 case 'TensionFactors' | |
19 val = a.tension_fact; | |
20 case 'HappyFactors' | |
21 val = a.happy_fact; | |
22 case 'SadFactors' | |
23 val = a.sad_fact; | |
24 case 'TenderFactors' | |
25 val = a.tender_fact; | |
26 case 'AngerFactors' | |
27 val = a.anger_fact; | |
28 case 'FearFactors' | |
29 val = a.fear_fact; | |
30 otherwise | |
31 val = get(mirdata(a),propName); | |
32 end |