How do I write to a .txt file?
古いコメントを表示
I need to write to a .txt file.
Thank you for your help.
回答 (2 件)
Walter Roberson
2014 年 1 月 25 日
fid = fopen('YourFile.txt', 'wt');
fprintf(fid, 'Jake said: %f\n', sqrt(1:10));
fclose(fid);
G PRAKASH
2014 年 1 月 25 日
0 投票
use dlmwrite command
I=magic(10); dlmwrite('file.txt',I)
カテゴリ
ヘルプ センター および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!