Matlab grader problem error

7 views (last 30 days)
Cristian Segura Bidermann
Cristian Segura Bidermann on 19 Jul 2021
Commented: Cris LaPierre on 19 Jul 2021
Could someone tell me the mistake I'm making?

Answers (2)

Sameer Pujari
Sameer Pujari on 19 Jul 2021
try this
fileID = fopen('AwesomeFile.txt','w');
fprintf(fileID,'Matlab is awesome!');
fclose(fileID);

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

Sign in to comment.

Categories

Find more on Debugging and Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!