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 件のコメント

KSSV
KSSV 2016 年 11 月 2 日
Okay...what is the issue?

サインインしてコメントする。

回答 (1 件)

Varsha Kadam
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 についてさらに検索

タグ

質問済み:

2016 年 11 月 2 日

回答済み:

2022 年 11 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by