annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirtemporal/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 MIRtemporal object
wolffd@0 3 % and return the value
wolffd@0 4
wolffd@0 5 switch propName
wolffd@0 6 case 'Time'
wolffd@0 7 val = get(a,'Pos');
wolffd@0 8 case 'Centered'
wolffd@0 9 val = a.centered;
wolffd@0 10 case 'NBits'
wolffd@0 11 val = a.nbits;
wolffd@0 12 otherwise
wolffd@0 13 val = get(mirdata(a),propName);
wolffd@0 14 end