How to convert a RR interval file into text format.
2 次查看(过去 30 天)
显示 更早的评论
Dear Colleagues,
I want to use some RR interval files freely available at Physionet.org. In order to use it in my script which uses the function msentropy.m (also from Physionet) I need to convert this RR interval files (annotation files) into a text file format. I have tried to do it by copy and paste and so on. It did work somehow for annotation files containing just few columns and rows. But normally annotation files of RR interval files have 6 columns and could have easily 100-200 rows. I have tried many things but I just can not do it. I have also read the tutorials at Physionet but it does not work. Could someone help me in this matter? I would be very thankful for any help and guidance. Kind regards, Massilon
0 个评论
采纳的回答
Star Strider
2017-5-21
Not knowing what your files contain (other than that they appear to be a matrix of numbers), or what format ‘msentropy’ requires, the dlmwrite function would seem to be appropriate.
Experiment to get the result you want.
2 个评论
Star Strider
2017-5-21
My pleasure.
You first must import the text file into MATLAB. The dlmread or textscan functions can do this.
If you only need the second column, and you read the text file into a matrix called ‘Data’ this works:
Col2 = Data(:,2);
Then pass the ‘Col2’ vector to the ‘msentropy’ function.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!