Why does "export()" function on a live script export the data of the previous run?
조회 수: 3 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2023년 1월 26일
답변: MathWorks Support Team
2023년 2월 7일
I am using the "export" function on a live script. The live script is opening a file in a custom format, extracting, parsing and processing the data and then displaying the path of the source file and drawing graphs to show information of interest. Once the script is completed, the file paths and figures in the live script are correct, but if the export command is added at any point in the live script, the exported pdf shows the data that was generated during the previous execution of the live script.
채택된 답변
MathWorks Support Team
2023년 1월 26일
The “export()” function takes a file path as argument and therefore, it loads the last saved state of the file from disk for the export. So the results are not current. If the most recent execution results should be considered while exporting, please save the file before exporting.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 LaTeX에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!