Mercurial > hg > ltpda
comparison m-toolbox/test/test_pzm_to_fir.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_PZM_TO_FIR tests converting pzmodel into an FIR filter | |
2 % | |
3 % M Hewitson 16-08-07 | |
4 % | |
5 % $Id: test_pzm_to_fir.m,v 1.3 2009/02/02 15:20:38 hewitson Exp $ | |
6 % | |
7 function test_pzm_to_fir() | |
8 | |
9 | |
10 ps = [pz(1) pz(200)]; | |
11 zs = [pz(50)]; | |
12 | |
13 % Make pz model | |
14 pzm = pzmodel(1, ps, zs); | |
15 | |
16 % Make filter | |
17 f = mfir(plist('pzmodel', pzm)); | |
18 | |
19 % compute response | |
20 resp(f) | |
21 | |
22 end | |
23 % END |