필터 지우기
필터 지우기

new line

조회 수: 5 (최근 30일)
stephanie borg
stephanie borg 2011년 3월 29일
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?

채택된 답변

Walter Roberson
Walter Roberson 2011년 3월 29일
You might try using 'at' instead of 'a' when you fopen().
  댓글 수: 1
stephanie borg
stephanie borg 2011년 3월 29일
thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Electrophysiology에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by