Suppress figure windows when using publish
7 ビュー (過去 30 日間)
古いコメントを表示
I have several graphs and uitables in my script. When I publish it, it opens new figure windows to plot graphs. I close them automatically when it's done, but I'd like to prevent creating the windows in the first place.
I've tried set(0,'DefaultFigureVisible','off'), set(gcf,'visible','off'), figure('visible', 'off');
All of them did not create figure windows but the graphs also didn't appear in my published pdf file.
Anyone know how to publish graphs without opening the figure window? Thank you.
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 で Creating, Deleting, and Querying Graphics Objects についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!