How to export result of the script to txt/doc file ?

5 ビュー (過去 30 日間)
Oleg Khegay
Oleg Khegay 2018 年 9 月 13 日
回答済み: Star Strider 2018 年 9 月 13 日
I have a script with several sprintf commands. How to write them automatically to external text file after running the script?

採用された回答

Star Strider
Star Strider 2018 年 9 月 13 日
Use the fopen (link) command to create a file identification number. Then use the file identification number in your fprintf (link) calls to print to a file.
Copy your sprintf calls to fprintf calls, since they use the same essential syntax, other than fprintf using the file identification number.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by