Matlab grader problem error

6 visualizaciones (últimos 30 días)
Cristian Segura Bidermann
Cristian Segura Bidermann el 19 de Jul. de 2021
Comentada: Cris LaPierre el 19 de Jul. de 2021
Could someone tell me the mistake I'm making?
  2 comentarios
Torsten
Torsten el 19 de Jul. de 2021
What error message do you get ?
Cristian Segura Bidermann
Cristian Segura Bidermann el 19 de Jul. de 2021

Iniciar sesión para comentar.

Respuestas (2)

Sameer Pujari
Sameer Pujari el 19 de Jul. de 2021
try this
fileID = fopen('AwesomeFile.txt','w');
fprintf(fileID,'Matlab is awesome!');
fclose(fileID);
  1 comentario
Cristian Segura Bidermann
Cristian Segura Bidermann el 19 de Jul. de 2021
Thank you very much !!, there it worked for me.

Iniciar sesión para comentar.


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

Iniciar sesión para comentar.

Categorías

Más información sobre Debugging and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by