Mercurial > hg > ltpda
view m-toolbox/test/test_convert_pzmodel_rational.m @ 26:ce4df2e95a55 database-connection-manager
Remove LTPDARepositoryManager initialization
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
mc %% start from pzmodel pzm = pzmodel(5, {[1 2]}, {[10 2]}); pzm.setName; %% Convert to rational rat = rational(pzm); %% Convert back pzm2 = pzmodel(rat) %% Convert to parfrac pf = parfrac(rat); pf2 = parfrac(pzm); %% resp pzmr = resp(pzm); ratr = resp(rat); pfr = resp(pf, plist('f', ratr)); pfr2 = resp(pf2, plist('f', ratr)); iplot(pzmr, ratr) iplot(pzmr, pfr) iplot(pzmr, pfr2)