Mercurial > hg > ltpda
comparison m-toolbox/test/test_ao_join_ts.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_AO_JOIN_TS test then join method of AO class for tsdata objects. | |
2 % | |
3 % M Hewitson 03-06-07 | |
4 % | |
5 % $Id: test_ao_join_ts.m,v 1.10 2009/02/02 15:20:38 hewitson Exp $ | |
6 % | |
7 function test_ao_join_ts() | |
8 | |
9 % Make some AOs | |
10 | |
11 nsecs = 10; | |
12 fs = 1; | |
13 | |
14 pl = plist('nsecs', nsecs, 'fs', fs, 'tsfcn', 'sin(2*pi*7.433*t) + randn(size(t))'); | |
15 | |
16 a1 = ao(pl); | |
17 a1.setName('a1'); | |
18 a1.setT0('2007-05-01 22:00:05'); | |
19 | |
20 a2 = ao(pl); | |
21 a2.setName('a2'); | |
22 a2.setT0('2007-05-01 22:00:00'); | |
23 | |
24 a3 = ao(pl); | |
25 a3.setName('a3'); | |
26 a3.setT0('2007-05-01 22:00:25'); | |
27 | |
28 | |
29 % Join | |
30 aj = join(a1,a2,a3); | |
31 | |
32 % Plot | |
33 iplot([a1 a2 a3 aj], plist('Markers', {'o', 'o', 'o', ''})); | |
34 plot(aj.hist) | |
35 | |
36 end | |
37 % END |