フィルターのクリア

Matlab data to ASCII/ MIT files

8 ビュー (過去 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 Center および File ExchangeData Import and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by