Mercurial > hg > ltpda
diff m-toolbox/test/test_convert_pzmodel_parfrac.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/test/test_convert_pzmodel_parfrac.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,26 @@ +mc + +%% start from pzmodel +pzm = pzmodel(1, {[1 2], 10}, [3 2]) +pzm.setName; + +%% Convert to partial fractions +pf = parfrac(pzm) + +%% Convert back again + +%% Check resp + +pzmr = resp(pzm); +pfr = resp(pf); + +iplot(pzmr, pfr) + +%% Make a filter + +pfilt = miir(pzm) +filts = miir(pf) + +fr = resp(filts) + +