Convert ECG signal waveform into text file

23 Ansichten (letzte 30 Tage)
NOORAISYAH NABILAH
NOORAISYAH NABILAH am 2 Mär. 2021
Kommentiert: Walter Roberson am 11 Mär. 2021
Hi.
I want to ask is it possible to convert ECG signal waveform into text file? And if it is possible how to perform it?
I am able to load the ecg data file in .mat file from database and processed it through according to the matlab code written.

Antworten (1)

KALYAN ACHARJYA
KALYAN ACHARJYA am 2 Mär. 2021
Steps:
%load the mat file
data=load('mat_file.mat');
%Save the data in txt file
dlmwrite('filename.txt',data)
  9 Kommentare
NOORAISYAH NABILAH
NOORAISYAH NABILAH am 4 Mär. 2021
Sir @Walter Roberson @KALYAN ACHARJYA, how can we distinguish datapoints of the x and y axis of the waveform. I mean it only have the amplitude value of the waveform. How can we know the x axis value (time (s)) corresponding with the y axis value (amplitude)?
How to convert with both values and time?
Walter Roberson
Walter Roberson am 11 Mär. 2021
time = (0:length(val)-1)/Fs;
Here Fs needs to be the sampling frequency, in hertz (cycles per second.)
Nothing in the .mat file has information about the sampling frequency; you cannot deduce it from the data itself. You would need to find it as external information.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Measurements and Feature Extraction finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by