Matlab data to ASCII/ MIT files

조회 수: 2 (최근 30일)
Ana Gabriela Guedes
Ana Gabriela Guedes 2021년 6월 2일
답변: Walter Roberson 2021년 6월 2일
Hi!! I have a lot of ECG matlab data files I want to analyse but the program I'm using only accepts ASCII or MIT files, how can I convert them efficiently?
I tried to use
save('file.txt','filename','-ascii');
for one of them but it didn't work, it says "Unknown text on line number 1 of ASCII file filename'.
Thank you in advance for any help

답변 (1개)

Walter Roberson
Walter Roberson 2021년 6월 2일
save -ascii adds a comment.
These days, I suggest you use writematrix() with appropriate delimiter set.
If your MATLAB does not have writematrix() then dlmwrite() works. Remember to set the precision parameter as needed.

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by