close all, clear all, clc N = 200; fn = [0.3 0.4]; B = fir1(N, fn, 'stop', chebwin(N + 1)) [H, w] = freqz(B, 1); subplot(2,1,1) stem(0:N, chebwin(N + 1)), grid subplot(2,1,2) plot(w/(2*pi), 20*log10(abs(H))), grid