comparison m-toolbox/test/test_times.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 % A test script for the AO times.
2 %
3 % M Hewitson 16-03-07
4 %
5 % $Id: test_times.m,v 1.14 2009/02/02 15:20:37 hewitson Exp $
6 %
7 function test_times()
8
9 % Make test AOs
10 nsecs = 10;
11 fs = 1000;
12
13 pl = plist('nsecs', nsecs, 'fs', fs, 'tsfcn', 'sin(2*pi*7.433*t) + randn(size(t))');
14
15 a1 = ao(pl);
16 a2 = ao(pl);
17
18
19 % multiply and plot
20 a3 = a1.*a2;
21
22 iplot(a3)
23 plot(a3.hist)
24
25
26 % Reproduce from history
27 a_out = rebuild(a3);
28
29 iplot(a_out)
30 plot(a_out.hist)
31
32 end