Mercurial > hg > ltpda
comparison m-toolbox/test/test_plus.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 plus. | |
2 % | |
3 % M Hewitson 16-03-07 | |
4 % | |
5 % $Id: test_plus.m,v 1.14 2009/02/02 15:20:39 hewitson Exp $ | |
6 % | |
7 function test_plus() | |
8 | |
9 | |
10 % Make test AOs | |
11 | |
12 nsecs = 10; | |
13 fs = 1000; | |
14 | |
15 pl = plist('nsecs', nsecs, 'fs', fs, 'tsfcn', 'sin(2*pi*7.433*t) + randn(size(t))'); | |
16 | |
17 a1 = ao(pl); | |
18 a2 = ao(pl); | |
19 | |
20 % add 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 |