How can I write a magic(5) matrix to a text file with special delimiters?
1 回表示 (過去 30 日間)
古いコメントを表示
I want to a matrix in txt for with the delimeter %%%
0 件のコメント
採用された回答
Chunru
2021 年 9 月 13 日
x = magic(5);
fid = fopen('test.txt', 'w');
fprintf(fid, '%f\n', x); % try different format here
fclose(fid)
type('test.txt')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!