FFT to remove low frequency component
Mostrar comentarios más antiguos
Hello, I read an article about removing noise by using fft as follows:
% Remove lower frequencies fresult=fft(ecg); fresult(1 : round(length(fresult)*5 /samplingrate))=0; fresult(end - round(length(fresult)*5/samplingrate) : end)=0; corrected=real(ifft(fresult));
The result can successfully correct the baseline wander. However, I don't understand the logic of the code. Why would it choose fresult(1 : round(length(fresult)*5 /samplingrate)) to zero to remove low frequency component? How can we know the range to remove?
1 comentario
KSSV
el 2 de Nov. de 2016
Okay...what is the issue?
Respuestas (1)
Varsha Kadam
el 27 de Nov. de 2022
0 votos
Hello, I read an article about removing noise by using fft as follows:
% Remove lower frequencies fresult=fft(ecg); fresult(1 : round(length(fresult)*5 /samplingrate))=0; fresult(end - round(length(fresult)*5/samplingrate) : end)=0; corrected=real(ifft(fresult));
The result can successfully correct the baseline wander. However, I don't understand the logic of the code. Why would it choose fresult(1 : round(length(fresult)*5 /samplingrate)) to zero to remove low frequency component? How can we know the range to remove?
Categorías
Más información sobre Fourier Analysis and Filtering en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!