Filter löschen
Filter löschen

new line

5 Ansichten (letzte 30 Tage)
stephanie borg
stephanie borg am 29 Mär. 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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 29 Mär. 2011
You might try using 'at' instead of 'a' when you fopen().
  1 Kommentar
stephanie borg
stephanie borg am 29 Mär. 2011
thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Electrophysiology finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by