save / print figure using appdesigner

回答 (1 件)

prabhat kumar sharma
prabhat kumar sharma 2025 年 1 月 31 日

0 投票

Hello Scott,
I understand that you're experiencing issues with the `print` function when trying to save a figure. As an alternative, you can use `exportgraphics`.
  • Use the exportgraphics function, which is designed to work with uifigures and offers more flexibility and better compatibility for exporting graphics.
exportgraphics(app.UIAxes, 'filename.png');
I hope it helps!

カテゴリ

ヘルプ センター および File ExchangeDesktop についてさらに検索

製品

質問済み:

2019 年 2 月 3 日

回答済み:

2025 年 1 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by