Matlab grader problem error
조회 수: 4 (최근 30일)
이전 댓글 표시
Could someone tell me the mistake I'm making?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/689158/image.jpeg)
댓글 수: 2
답변 (2개)
Sameer Pujari
2021년 7월 19일
try this
fileID = fopen('AwesomeFile.txt','w');
fprintf(fileID,'Matlab is awesome!');
fclose(fileID);
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
Cris LaPierre
2021년 7월 19일
It's printing it to the screen. It is not, however, writing it to the file 'AwesomeFile.txt'.
참고 항목
카테고리
Help Center 및 File Exchange에서 Debugging and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!