Matlab grader problem error
显示 更早的评论
Could someone tell me the mistake I'm making?

回答(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
0 个投票
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
2021-7-19
Cris LaPierre
2021-7-19
It's printing it to the screen. It is not, however, writing it to the file 'AwesomeFile.txt'.
类别
在 帮助中心 和 File Exchange 中查找有关 Manage Products 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

