comparison m-toolbox/test/test_xydata_class.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_xydata_class()
2
3 % TEST_XYDATA_CLASS tests various features of xydata class.
4 %
5 % M Hewitson 06-05-07
6 %
7 % $Id: test_xydata_class.m,v 1.10 2008/07/29 15:11:44 ingo Exp $
8 %
9
10 % empty constructor
11 xy = xydata()
12
13 % with data
14 xy = xydata(randn(1000,1))
15
16 %% with XY data
17 xy = xydata(1:1000, randn(1000,1))
18
19 %% Make XYdata AO
20 a = ao(xy)
21
22 iplot(a)
23 plot(a.hist)
24
25 %% Test operators
26
27 a = ao(xydata(1:1000, randn(1000,1)))
28 b = ao(xydata(1:1000, randn(1000,1)))
29
30 c = a.*b;
31
32 iplot(c)
33 plot(c.hist)
34
35 d = sqrt(c)
36
37 iplot(d)
38 plot(d.hist)
39
40 % END