How do I write to a .txt file?
2 views (last 30 days)
Show older comments
I need to write to a .txt file.
Thank you for your help.
0 Comments
Answers (2)
Walter Roberson
on 25 Jan 2014
fid = fopen('YourFile.txt', 'wt');
fprintf(fid, 'Jake said: %f\n', sqrt(1:10));
fclose(fid);
0 Comments
See Also
Categories
Find more on Low-Level File I/O in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!