comparison m-toolbox/test/test_abs.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 % Test abs() operator for AOs.
2 %
3 % M Hewitson 19-04-07
4 %
5 % $Id: test_abs.m,v 1.10 2009/02/02 15:20:38 hewitson Exp $
6 %
7 function test_abs()
8
9 % Make test AOs
10
11 nsecs = 10;
12 fs = 1000;
13
14 pl = plist('nsecs', nsecs, 'fs', fs, 'tsfcn', 'randn(size(t))');
15
16 a1 = ao(pl);
17 a1.setName('a1');
18
19 % Take abs
20 a2 = abs(a1);
21
22 % Plot
23 iplot(a1, a2, plist('YScales', 'lin'))
24
25 % Rebuild it
26 a3 = rebuild(a2);
27
28 end
29
30 % END