comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 mc
2
3 %% seconds to Hz
4
5 a = ao(1:10);
6 a.setYunits('V ms^2 N');
7
8 a.convert('s to Hz')
9 % a.convert(plist('action', 's to Hz'))
10
11 %% Hz to seconds
12
13 a = ao(1:10);
14 a.setYunits('mHz^-1');
15
16 a.convert(plist('action', 'Hz to s'))
17
18 %% to cdata
19
20 a = ao(1:10,1:10)
21 a.convert('to cdata')
22
23
24 %% to tsdata
25
26 a = ao(1:10,1:10)
27 a.convert('to tsdata')
28
29 %% to fsdata
30
31 a = ao(1:10,1:10)
32 a.convert('to fsdata')
33
34 %% to xydata
35
36 a = ao(1:10,1:10, plist('dtype', 'tsdata'))
37 a.convert('to xydata')
38
39