Convert ECG signal waveform into text file
17 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
KALYAN ACHARJYA
2021-3-2
Steps:
%load the mat file
data=load('mat_file.mat');
%Save the data in txt file
dlmwrite('filename.txt',data)
9 个评论
Walter Roberson
2021-3-11
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Measurements and Feature Extraction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!