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