I have a signal which contains 40Hz and 50Hz values and it's FFT is like:
how can I remove 50Hz signal from it?
I tried second order filter but it getting worse: here is the filter code :
d = designfilt('bandstopiir','FilterOrder',2, ...
and then: where u is the input signal,
filtering = filtfilt(d,u);
the result is:
does anyone know where is the problem?
U which contains 40 and 50Hz signals is :