save / print figure using appdesigner

3 次查看(过去 30 天)
why does figure print not work in appdesigner

回答(1 个)

prabhat kumar sharma
prabhat kumar sharma 2025-1-31,5:34
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!

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by