diff m-toolbox/test/test_ao_convert.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_ao_convert.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,39 @@
+mc
+
+%% seconds to Hz
+
+a = ao(1:10);
+a.setYunits('V ms^2 N');
+
+a.convert('s to Hz')
+% a.convert(plist('action', 's to Hz'))
+
+%% Hz to seconds
+
+a = ao(1:10);
+a.setYunits('mHz^-1');
+
+a.convert(plist('action', 'Hz to s'))
+
+%% to cdata
+
+a = ao(1:10,1:10)
+a.convert('to cdata')
+
+
+%% to tsdata
+
+a = ao(1:10,1:10)
+a.convert('to tsdata')
+
+%% to fsdata
+
+a = ao(1:10,1:10)
+a.convert('to fsdata')
+
+%% to xydata
+
+a = ao(1:10,1:10, plist('dtype', 'tsdata'))
+a.convert('to xydata')
+
+