comparison m-toolbox/test/test_ao_compute.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 % function test_ao_compute
2
3 clear all;
4
5 %% Test 1
6
7 pl = plist('tsfcn', 'randn(size(t))', 'nsecs', 100, 'fs', 10);
8
9 x = ao(pl);
10 x.setName();
11 y = ao(pl);
12 y.setName();
13 z = ao(pl);
14 z.setName();
15
16 b = compute(x,y,z, 'a(1) + sqrt(a(2)./a(3))')
17
18 %% Test 2
19
20 b = compute([x y], z, plist('Operations', '(sqrt(a(1)) + log10(a(2)))./a(3)'))
21
22 plot(b.hist)
23
24 %% Test 3
25
26 b = compute([x y], z, plist('Operations', {'2.*a(3)./a(1)', 'a(2)-a(1)'}))
27
28 size(b)
29
30 %% Test 4
31
32 b = compute(x,y,z)
33
34