comparison m-toolbox/test/test_resample.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 resample function for AOs.
2 %
3 % M Hewitson 24-03-07
4 %
5 % $Id: test_resample.m,v 1.13 2009/02/02 15:20:39 hewitson Exp $
6 %
7 function test_resample()
8
9
10 % Make test AOs
11 nsecs = 10;
12 fs = 1000;
13
14 pl = plist('nsecs', nsecs, 'fs', fs, 'tsfcn', 'sin(2*pi*7.433*t) + randn(size(t))');
15 a1 = ao(pl);
16
17 % Resample
18 a2 = resample(a1, plist('fsout', 2000));
19 a3 = resample(a1, plist('fsout', 500));
20
21 % Plot
22 iplot([a1 a2 a3]);
23 utils.plottools.allxaxis(0, 0.1)
24
25 end
26
27
28