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

조회 수: 1 (최근 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 CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by