How do I write to a .txt file?

Antworten (2)

Walter Roberson
Walter Roberson am 25 Jan. 2014

1 Stimme

fid = fopen('YourFile.txt', 'wt');
fprintf(fid, 'Jake said: %f\n', sqrt(1:10));
fclose(fid);
G PRAKASH
G PRAKASH am 25 Jan. 2014

0 Stimmen

use dlmwrite command
I=magic(10); dlmwrite('file.txt',I)

Gefragt:

am 25 Jan. 2014

Beantwortet:

am 25 Jan. 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by