How do I write to a .txt file?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I need to write to a .txt file.
Thank you for your help.
0 commentaires
Réponses (2)
Walter Roberson
le 25 Jan 2014
fid = fopen('YourFile.txt', 'wt');
fprintf(fid, 'Jake said: %f\n', sqrt(1:10));
fclose(fid);
0 commentaires
Voir également
Catégories
En savoir plus sur Low-Level File I/O dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!