Mercurial > hg > ltpda
comparison m-toolbox/test/test_iplot_mixed_yunits.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 clear all; | |
2 | |
3 %% Test 1 - tsfcn | |
4 | |
5 a1 = ao(plist('tsfcn', 't', 'yunits', 'm')); | |
6 a2 = ao(plist('tsfcn', 't', 'yunits', 'N')); | |
7 | |
8 iplot(a1,a2) | |
9 iplot(a1,a2, plist('arrangement', 'subplots')) | |
10 | |
11 a3 = ao(plist('tsfcn', 't', 'yunits', 'N m')); | |
12 a4 = ao(plist('tsfcn', 't', 'yunits', 'm N')); | |
13 iplot(a3,a4) | |
14 | |
15 %% Test 2 - fsfcn | |
16 | |
17 f1 = a1.psd | |
18 f2 = a2.psd | |
19 f3 = a3.psd | |
20 f4 = a4.psd | |
21 | |
22 iplot(f1, f2) | |
23 iplot(f1, f2, plist('arrangement', 'subplots')) | |
24 | |
25 iplot(f3, f4) | |
26 | |
27 %% Test 3 - y data | |
28 | |
29 a1 = ao(1:10, plist('yunits', 'm')); | |
30 a2 = ao(1:10, plist('yunits', 'N')); | |
31 a3 = ao(1:10, plist('yunits', 'm')); | |
32 | |
33 iplot(a1,a2) | |
34 iplot(a1,a2, plist('arrangement', 'subplots')) | |
35 iplot(a1,a3) | |
36 |