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

1 Ansicht (letzte 30 Tage)
Oleg Khegay
Oleg Khegay am 13 Sep. 2018
Beantwortet: Star Strider am 13 Sep. 2018
I have a script with several sprintf commands. How to write them automatically to external text file after running the script?

Akzeptierte Antwort

Star Strider
Star Strider am 13 Sep. 2018
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.

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Export finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by