Mercurial > hg > ltpda
diff m-toolbox/test/test_cdata_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_cdata_class.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,27 @@ +function test_cdata_class() +% Test script for cdata class. +% +% M Hewitson 15-03-07 +% +% $Id: test_cdata_class.m,v 1.9 2008/09/05 14:18:36 hewitson Exp $ +% + +% Simple constructor +c = cdata + +% With values and tags +c = cdata([1 2 3]); + +pl = plist('Markers', {'o'}); + +iplot(ao(c), pl) + +% Constant +c = cdata(2.3) + +% from plist +% c = cdata(plist(param('fcn', 'randn(10,1)'))) + +% iplot(ao(c), pl) + +% END