How to convert a RR interval file into text format.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Massilon Toniolo da Silva
am 21 Mai 2017
Kommentiert: Star Strider
am 21 Mai 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 Kommentare
Akzeptierte Antwort
Star Strider
am 21 Mai 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 Kommentare
Star Strider
am 21 Mai 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Text Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!