How can I store scores in txt file by fprintf?

1 回表示 (過去 30 日間)
Ali
Ali 2014 年 12 月 16 日
回答済み: Sudharsana Iyengar 2014 年 12 月 18 日
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 日
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)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by