comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@miremotion/get.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 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