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!