필터 지우기
필터 지우기

How to exclude different sections of an ECG signal?

조회 수: 3 (최근 30일)
cfmmj23
cfmmj23 2020년 9월 19일
댓글: cfmmj23 2020년 9월 20일
I want to process various ECG signals, however, they all contain artifacts. Using a custom Matlab GUI, I shaded the artifacts of each datasets and were saved as a .mat file. Below is an example of an arifact being shaded. I also included the files of this signal here.
The .mat file contains the ECG signal, respiration signal, time, and the shaded data of the ECG and respiration signal. The shaded data contains 2 columns: first column being the start time and the second column being the end time of the shaded artifact, the rows correspond to the number of artifacts shaded in the signal (as seen below).
I want to be able to exclude these shaded data when processing the ECG signal and I will have to do this for 40 datasets. Though I'm not sure how to approach this with my basic knowledge of using Matlab. Is there a way to automatically exclude the artifacts from the ECG signal using the shaded data?
  댓글 수: 2
Image Analyst
Image Analyst 2020년 9월 19일
Do you want the artifact zones to be found automatically, or are you okay with manually indicating where they are?
cfmmj23
cfmmj23 2020년 9월 20일
Sorry for the confusion. In my case, I have to find the artifacts manually using the GUI that was provided to me and then try to exclude them using the shaded data. Though, if there is a way to find the artifact zones automatically, I'd also like to learn about it as it would help with my reseach.

댓글을 달려면 로그인하십시오.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 9월 19일
Try something like this
idx1 = t > AX1_Shade(:,1);
idx2 = t < AX1_Shade(:,2);
idx = idx1 & idx2;
idx = any(idx);
t(idx) = [];
fbsum(idx) = [];
Similar thing can be done for respiration data.

카테고리

Help CenterFile Exchange에서 Discrete Fourier and Cosine Transforms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by