Is there a publishing option to prevent figure windows from appearing when publishing my script in MATLAB 8.2 (R2013b)?
조회 수: 6 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2014년 1월 29일
답변: MathWorks Support Team
2014년 1월 31일
I have a script that generates a lot figures. When I run the script, I want to see the figures on the screen. When I publish the script, I would like the publisher to capture the figures but I do not want the figures to pop up on my screen. Is there a publishing option to achieve this?
채택된 답변
MathWorks Support Team
2014년 1월 29일
There is no publishing option to prevent figure windows from appearing while still capturing them in the report.
However, you can use the 'snapnow' function to force a particular figure to be included in your published document, then you can close the figure to prevent too many figures from cluttering your screen.
Alternatively, you can use 'dbstack' to determine whether your script is being called by the publisher, and optionally close the figure only when you are publishing a document. Examples of how this could be done are attached to this article.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!