Different results using buttap and butter
Show older comments
HI, Im having problem with designing IIR filter with buttap and bilinear functions. Filter doesnt match the one designed using butter function. Any ideas where the problem occurs?
fs=30000;
fc=10000;
n=6;
[z,p,k]=buttap(n);
[b,a]=zp2tf(z,p,k);
[be,ae]=lp2lp(b,a,fc);
[numd,dend]=bilinear(be,ae,fs,fc);
[bt,at] = butter(n,fc/(fs/2));
fvtool(numd,dend,bt,at);
1 Comment
collegebaj
on 14 Jan 2020
Answers (1)
wp=0.3;
ws=0.6;
rp=1;
rs=40;
[N wn]=buttord(wp,ws,rp,rs);
[z,p,k ]=buttap(N)
Categories
Find more on Analog Filters in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!