comparison m-toolbox/test/test_recreate_1.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 % Testing features of 'recreate from history'.
2 %
3 % M Hewitson 16-03-07
4 %
5 % $Id: test_recreate_1.m,v 1.16 2009/02/02 15:20:38 hewitson Exp $
6 %
7 function test_recreate_1()
8
9 % Create constant AO
10
11 a1 = ao(2:20);
12 d = a1.data;
13 disp(['vals = ' num2str(d.y)])
14 iplot(a1)
15 plot(a1.hist)
16
17 % Create from plist
18 a2 = ao(plist('fcn', 'complex(randn(100,1), randn(100,1))'));
19 d = a2.data;
20 d.y;
21 iplot(a2)
22 plot(a2.hist)
23
24
25 % Reproduce from history
26 a_out = rebuild(a1);
27 iplot(a_out)
28 plot(a_out.hist)
29 a_out = rebuild(a2);
30 iplot(a_out)
31 plot(a_out.hist)
32
33 end
34 % END