comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@miraudio/plus.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 c = plus(a,b)
2
3 sa = get(a,'Sampling');
4 if iscell(sa)
5 sa = sa{1};
6 end
7 sb = get(b,'Sampling');
8 if iscell(sb)
9 sb = sb{1};
10 end
11 if sa>sb
12 b = miraudio(b,'Sampling',sa);
13 elseif sb>sa
14 a = miraudio(a,'Sampling',sb);
15 end
16 c = plus(mirtemporal(a),mirtemporal(b));
17 c = miraudio(c);