FFT to remove low frequency component

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?

Risposte (1)

Varsha Kadam
Varsha Kadam il 27 Nov 2022
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?

Categorie

Scopri di più su Fourier Analysis and Filtering in Centro assistenza e File Exchange

Tag

Richiesto:

il 2 Nov 2016

Risposto:

il 27 Nov 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by