Best digital filter to eliminate powerline interference at 5

Best digital filter to eliminate powerline interference at 50 Hz and for muscle artifact above 30 Hz? I\'m supposing for the first you\'d need a notch filter and for the second a low-pass but don\'t know which kind of filter would be best to achieve enough attenuation (FIR or IIR). Would appreciate a matlab code.

Solution

%clearing window, variables and figures
clear all;
close all;
clf;
clc;
a=fir1(100,[0.07 0.13],\'stop\');
y2=filter(a,1,y); %y is the signal to pass through notch filter
a1=fir1(100,0.07,\'low\');
y3=filter(a,1,y1); %y1 is the muscle artifact signal
plot(y2);
plot(y3);

Best digital filter to eliminate powerline interference at 50 Hz and for muscle artifact above 30 Hz? I\'m supposing for the first you\'d need a notch filter an

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site