Sunteți pe pagina 1din 1

Second order LPF

clc

%DesignalowpassFIRfilterfordatasampledat48kHz.
%Thepassbandedgefrequencyis8kHz.
%Thepassbandrippleis0.01dBand
%thestopbandattenuationis80dB.
%Constrainthefilterorderto120.

N=2;
Fs=48e3;
Fp=8e3;
Ap=0.01;
Ast=80;

Rp=(10^(Ap/20)1)/(10^(Ap/20)+1);
Rst=10^(Ast/20);

NUM=firceqrip(N,Fp/(Fs/2),[RpRst],'passedge');
fvtool(NUM,'Fs',Fs)

S-ar putea să vă placă și