How can I store scores in txt file by fprintf?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
2014년 12월 16일
help fprintf
It's fairly straigthforward. What have you tried and were did you got stuck?
답변 (1개)
Sudharsana Iyengar
2014년 12월 18일
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)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!