diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/test/test_xydata_class.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,40 @@
+function test_xydata_class()
+
+% TEST_XYDATA_CLASS tests various features of xydata class.
+% 
+% M Hewitson 06-05-07
+% 
+% $Id: test_xydata_class.m,v 1.10 2008/07/29 15:11:44 ingo Exp $
+% 
+
+% empty constructor
+xy = xydata()
+
+% with data
+xy = xydata(randn(1000,1))
+
+%% with XY data
+xy = xydata(1:1000, randn(1000,1))
+
+%% Make XYdata AO
+a = ao(xy)
+
+iplot(a)
+plot(a.hist)
+
+%% Test operators
+
+a = ao(xydata(1:1000, randn(1000,1)))
+b = ao(xydata(1:1000, randn(1000,1)))
+
+c = a.*b;
+
+iplot(c)
+plot(c.hist)
+
+d = sqrt(c)
+
+iplot(d)
+plot(d.hist)
+
+% END