ar1st0crat / NWaves

.NET DSP library with a lot of audio processing functions
MIT License
453 stars 71 forks source link

how to implement a Notch filter #42

Closed alireza-bina closed 3 years ago

alireza-bina commented 3 years ago

i write my code in matlab; y is signal; how to implement matlab code to nwave in c#?

Fs=1000; w=50/(Fs/2); bw=w; [num,den]=iirnotch(w,bw); % notch filter implementation y2=filter(num,den,y);