comparison m-toolbox/test/test_ltpda_lincom.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 script for ltpda_lincom.
2 %
3 % M Hewitson 14-02-07
4 %
5 % $Id: test_ltpda_lincom.m,v 1.17 2009/02/19 08:18:55 hewitson Exp $
6 %
7 function test_ltpda_lincom()
8
9
10 % Make test AOs
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 a3 = ao(pl);
19
20 % Make linear combination
21
22 b = lincom(a1, a2, a3, ao([1 2 3]));
23
24 iplot(b)
25 plot(b.hist)
26
27
28 % Reproduce from history
29 a_out = rebuild(b);
30
31 iplot(a_out)
32 plot(a_out.hist)
33
34 end
35
36 % END