FFT to remove low frequency component
Mostra commenti meno recenti
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 Commento
KSSV
il 2 Nov 2016
Okay...what is the issue?
Risposte (1)
Varsha Kadam
il 27 Nov 2022
0 voti
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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!