How to convert a RR interval file into text format.
2 views (last 30 days)
Show older comments
Massilon Toniolo da Silva
on 21 May 2017
Commented: Star Strider
on 21 May 2017
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 Comments
Accepted Answer
Star Strider
on 21 May 2017
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 Comments
Star Strider
on 21 May 2017
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.
More Answers (0)
See Also
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!