Borrar filtros
Borrar filtros

new line

5 visualizaciones (últimos 30 días)
stephanie borg
stephanie borg el 29 de Mzo. de 2011
So i want to write information in a text file annd this is my code
fid=fopen('simulation.txt', 'a');
fprintf(fid,'\n');
fprintf(fid,'%s\n ','injection moulding ');
fprintf(fid,'% g\n ',y);
fprintf(fid,'% g\n ',x);
fprintf(fid,'\n');
fclose(fid);
however it is not skipping a line between each one. what am i doing wrong?

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Mzo. de 2011
You might try using 'at' instead of 'a' when you fopen().
  1 comentario
stephanie borg
stephanie borg el 29 de Mzo. de 2011
thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Electrophysiology en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by