How do I write to a .txt file?

Respuestas (2)

Walter Roberson
Walter Roberson el 25 de En. de 2014

1 voto

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

0 votos

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

Etiquetas

Preguntada:

el 25 de En. de 2014

Respondida:

el 25 de En. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by