Effacer les filtres
Effacer les filtres

new line

5 vues (au cours des 30 derniers jours)
stephanie borg
stephanie borg le 29 Mar 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?

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Mar 2011
You might try using 'at' instead of 'a' when you fopen().
  1 commentaire
stephanie borg
stephanie borg le 29 Mar 2011
thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Electrophysiology dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by