필터 지우기
필터 지우기

How to plot a ECG signal in time scale?

조회 수: 13 (최근 30일)
Arijit Ghosh
Arijit Ghosh 2016년 12월 21일
댓글: Star Strider 2020년 2월 19일
Hello all, I am working on an ECG signal, i wish to know how to plot the ECG signal in respect of time scale. I am having 76801 samples with sampling rate 256Hz, i.e. 5 min of the signal. Please suggest a code if possible. Thanx in advance Arijit

답변 (2개)

Star Strider
Star Strider 2016년 12월 21일
You can use linspace to create a time vector for your EKG:
t = linspace(0, 76800, 76801)/256; % Time Vector (Intervals In Seconds)
Ts = mean(diff(t)); % Sampling Interval
Fs = 1/Ts; % Sampling Frequency (Check)
  댓글 수: 12
Kristofer Soler
Kristofer Soler 2020년 2월 19일
I just meant that if you take an ecg from say physionet and just load, eg. (load'100m.mat') it into matlab by default the array will be called "val", which i assume is short for values or something, but this is default for matlab.
Star Strider
Star Strider 2020년 2월 19일
It is always good MATLAB programming practice to load a .mat file to a variable. This creates a structure array that can then be addressed specifically to access the EKG record, the time vector, and other information. It also allows control over what gets loaded into the workspace as variables.

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


karima neffati
karima neffati 2019년 7월 16일
hello Mr star
Mr Star can i ask you please how to convert an ecg signal to image ??
i have a saved ecg file with(x:samples,y:amplitude,fs=2155 )

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by