How do I write to a .txt file?
    11 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
I need to write to a .txt file.
Thank you for your help.
0 comentarios
Respuestas (2)
  Walter Roberson
      
      
 el 25 de En. de 2014
        fid = fopen('YourFile.txt', 'wt');
fprintf(fid, 'Jake said: %f\n', sqrt(1:10));
fclose(fid);
0 comentarios
  G PRAKASH
      
 el 25 de En. de 2014
        use dlmwrite command
I=magic(10); dlmwrite('file.txt',I)
0 comentarios
Ver también
Categorías
				Más información sobre Text Files en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


