Mercurial > hg > ltpda
comparison m-toolbox/test/test_mtimes.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 function test_mtimes() | |
2 % A test script for the AO mtimes. | |
3 % | |
4 % M Hewitson 16-03-07 | |
5 % | |
6 % $Id: test_mtimes.m,v 1.3 2008/09/19 14:03:50 ingo Exp $ | |
7 % | |
8 | |
9 %% make test data files | |
10 make_test_ascii_file('data1', 1, 1000); | |
11 make_test_ascii_file('data2', 1, 1000); | |
12 | |
13 %% Load data into analysis objects | |
14 | |
15 a1 = ao(randn(123,1),12); | |
16 a2 = a1.'; | |
17 | |
18 | |
19 %% add and plot | |
20 a3 = a2*a1 | |
21 a3.data | |
22 | |
23 iplot(a3) | |
24 plot(a3.hist) | |
25 | |
26 | |
27 %% Reproduce from history | |
28 | |
29 % Write an m-file from AO | |
30 ao2m(a3, 'test.m'); | |
31 | |
32 %% now run it | |
33 clear | |
34 a1 = test | |
35 | |
36 iplot(a1) | |
37 plot(a1.hist) | |
38 | |
39 delete('test.m') |