comparison m-toolbox/test/test_ao_1.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 functionality of analysis objects.
2 %
3 %
4 % M Hewitson 01-02-07
5 %
6 % $Id: test_ao_1.m,v 1.24 2009/02/02 15:20:39 hewitson Exp $
7 %
8 function test_ao_1()
9
10 % Make test AOs
11
12 nsecs = 10;
13 fs = 1000;
14
15 pl = plist('nsecs', nsecs, 'fs', fs, 'tsfcn', 'randn(size(t))');
16
17 a1 = ao(pl);
18 a2 = ao(pl);
19 a3 = ao(pl);
20
21 % Add the two analysis objects
22
23 a4 = a3+a2;
24 a5 = a4+a1;
25
26 %% Plot both
27
28 plot(a5.hist);
29
30 % Rebuid
31 a_out = a5.rebuild;
32
33 iplot(a_out)
34 plot(a_out.hist)
35
36 end