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?
回答(1 个)
Varsha Kadam
2022-11-27
0 个投票
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?
类别
在 帮助中心 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!