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