How do I write to a .txt file?
Mostra commenti meno recenti
I need to write to a .txt file.
Thank you for your help.
Risposte (2)
Walter Roberson
il 25 Gen 2014
fid = fopen('YourFile.txt', 'wt');
fprintf(fid, 'Jake said: %f\n', sqrt(1:10));
fclose(fid);
G PRAKASH
il 25 Gen 2014
0 voti
use dlmwrite command
I=magic(10); dlmwrite('file.txt',I)
Categorie
Scopri di più su Text Files in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!