comparison m-toolbox/test/test_mean.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % Test mean() operator for AOs.
2 %
3 % M Hewitson 19-04-07
4 %
5 % $Id: test_mean.m,v 1.11 2009/02/02 15:20:39 hewitson Exp $
6 %
7 function test_mean()
8
9
10 % Make test AOs
11
12 nsecs = 10;
13 fs = 1000;
14
15 pl = plist('nsecs', nsecs, 'fs', fs, 'tsfcn', '10 + sin(2*pi*7.433*t) + randn(size(t))');
16
17 a1 = ao(pl);
18 a1 = a1.setName('a1')
19
20 % Take abs
21 a2 = mean(a1)
22 a3 = a1 - a2;
23
24 % Plot
25 iplot(a1, a3)
26
27 end
28
29 % END