필터 지우기
필터 지우기

Matlab grader problem error

조회 수: 4 (최근 30일)
Cristian Segura Bidermann
Cristian Segura Bidermann 2021년 7월 19일
댓글: Cris LaPierre 2021년 7월 19일
Could someone tell me the mistake I'm making?
  댓글 수: 2
Torsten
Torsten 2021년 7월 19일
What error message do you get ?
Cristian Segura Bidermann
Cristian Segura Bidermann 2021년 7월 19일

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

답변 (2개)

Sameer Pujari
Sameer Pujari 2021년 7월 19일
try this
fileID = fopen('AwesomeFile.txt','w');
fprintf(fileID,'Matlab is awesome!');
fclose(fileID);
  댓글 수: 1
Cristian Segura Bidermann
Cristian Segura Bidermann 2021년 7월 19일
Thank you very much !!, there it worked for me.

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


Cris LaPierre
Cris LaPierre 2021년 7월 19일
Follow the advice in the problem description - review the documentation page for fprintf. Your code is not writing anything into the file.
  댓글 수: 2
Cristian Segura Bidermann
Cristian Segura Bidermann 2021년 7월 19일
Yes, if the code writes what is required
Cris LaPierre
Cris LaPierre 2021년 7월 19일
It's printing it to the screen. It is not, however, writing it to the file 'AwesomeFile.txt'.

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

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by