用matlab设计FIR低通滤波器,低通滤波器性能指标fb=1 000 Hz,fc=1 200 Hz,As=100 dB,Ap=1 dB。求代

2025-04-07 03:40:51
推荐回答(1个)
回答1:

>> %design a Butterworth filter and suppose the sampling frequency is 4000HZ
>> fs=4000;
>> [n,Wn]=buttord(1000/(fs/2),1200/(fs/2),1,100);
>> [b,a]=butter(n,Wn);
>> freqz(b,a,512,fs);
就帮你用了最简单的巴特沃兹滤波器。