comparison m-toolbox/test/test_convert_pzmodel_rational.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 mc
2
3 %% start from pzmodel
4 pzm = pzmodel(5, {[1 2]}, {[10 2]});
5 pzm.setName;
6
7
8 %% Convert to rational
9
10 rat = rational(pzm);
11
12 %% Convert back
13
14 pzm2 = pzmodel(rat)
15
16
17 %% Convert to parfrac
18
19 pf = parfrac(rat);
20 pf2 = parfrac(pzm);
21
22 %% resp
23
24 pzmr = resp(pzm);
25 ratr = resp(rat);
26 pfr = resp(pf, plist('f', ratr));
27 pfr2 = resp(pf2, plist('f', ratr));
28
29 iplot(pzmr, ratr)
30 iplot(pzmr, pfr)
31 iplot(pzmr, pfr2)
32
33