How do I write to a .txt file?
Ältere Kommentare anzeigen
I need to write to a .txt file.
Thank you for your help.
Antworten (2)
Walter Roberson
am 25 Jan. 2014
fid = fopen('YourFile.txt', 'wt');
fprintf(fid, 'Jake said: %f\n', sqrt(1:10));
fclose(fid);
G PRAKASH
am 25 Jan. 2014
0 Stimmen
use dlmwrite command
I=magic(10); dlmwrite('file.txt',I)
Kategorien
Mehr zu Text Files finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!