How can I store scores in txt file by fprintf?

I am eager to know that how can I store my scores in txt file by fprintf and can I access that file by a variable? Scores should be added as they are entered in a vector? Thanks

댓글 수: 1

Thorsten
Thorsten 2014년 12월 16일
help fprintf
It's fairly straigthforward. What have you tried and were did you got stuck?

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

답변 (1개)

Sudharsana Iyengar
Sudharsana Iyengar 2014년 12월 18일

0 개 추천

since you want it in text format why dont you use dlm write.
If suppose you want to save a particular variable say S use following command
dlmwrite('name of the file.txt',S)

카테고리

도움말 센터 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

질문:

Ali
2014년 12월 16일

답변:

2014년 12월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by