Could someone tell me the mistake I'm making?

댓글 수: 2

Torsten
Torsten 2021년 7월 19일
What error message do you get ?

댓글을 달려면 로그인하십시오.

답변 (2개)

Sameer Pujari
Sameer Pujari 2021년 7월 19일

1 개 추천

try this
fileID = fopen('AwesomeFile.txt','w');
fprintf(fileID,'Matlab is awesome!');
fclose(fileID);
Cris LaPierre
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

Yes, if the code writes what is required
Cris LaPierre
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에 대해 자세히 알아보기

태그

질문:

2021년 7월 19일

댓글:

2021년 7월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by