Is it possible to disable figure/plot visibility while publishing a Matlab Script with the publish() function?
3 次查看(过去 30 天)
显示 更早的评论
I have some scripts that generate some reports for me (quite long) using the publish() function. The reports contain anywhere from 100-1000 figures, my problem is that every time I try to publish my scripts, the figures pour out on my screen (stealing window focus and RAM). I have tried throwing this in my script: set(0,'DefaultFigureVisible','on'), but it disabled visibility within my report as well. Any idea how to get around this? Thanks!!
0 个评论
回答(1 个)
Aniket
2025-5-7
As of R2024b, there is no publishing option to prevent figure windows from appearing while still capturing them in the report. However, you can create custom functions 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.
Please find detailed steps in this help article: https://www.mathworks.com/matlabcentral/answers/114375-is-there-a-publishing-option-to-prevent-figure-windows-from-appearing-when-publishing-my-script-in-m
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!