Matlab grader problem error
4 ビュー (過去 30 日間)
古いコメントを表示
Could someone tell me the mistake I'm making?
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!