chebyb.m

来自「使用Matlab实现了FIR与IIR滤波器」· M 代码 · 共 18 行

M
18
字号
function [ output_args ] = Untitled8( input_args )%UNTITLED8 Summary of this function goes here%  Detailed explanation goes hereft=22050;Wp1 =2*1200/ft;Wp2=2*3000/ft;Ws1 = 2*1000/ft;Ws2=2*3200/ft;Wp=[Wp1,Wp2];Ws=[Ws1,Ws2];Rp = 1;Rs = 100;[N,Wn] = cheb1ord(Wp,Ws,Rp,Rs);[b,a] = cheby1(N,Rp,Wn);[h,w]= freqz(b,a);plot (w/pi,20*log10(abs(h)));grid;xlabel('w/pi'); ylabel('Gain, dB');title('Type I Chebyshev Bandpass Filter');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?