Matlab App designer export figure

I want to export figure image. How can I export a figure in matlab app designer?

2 件のコメント

VBBV
VBBV 2023 年 8 月 7 日
編集済み: VBBV 2023 年 8 月 7 日
If its a Webapp, then the function exportapp is not valid, try also exporting the figure instead of just axes alone
Kaan Öner
Kaan Öner 2023 年 8 月 7 日
No It's desktop app. Matlab App designer.

サインインしてコメントする。

回答 (3 件)

VBBV
VBBV 2023 年 8 月 7 日
編集済み: VBBV 2023 年 8 月 7 日

0 投票

% File exchange
exportfig(app.UIAxes,"test")
% Standard matlab function
savefig(app.UIAxes,"test.fig")
% exportgraphics
exportgraphics(app.UIAxes,"test.png")
These are some of the ways you can export figure, try using one from FEX

1 件のコメント

VBBV
VBBV 2023 年 8 月 7 日
編集済み: VBBV 2023 年 8 月 7 日
Try using exportfig option available from FEX
https://in.mathworks.com/matlabcentral/fileexchange/727-exportfig

サインインしてコメントする。

Kaan Öner
Kaan Öner 2023 年 8 月 7 日

0 投票

Thanks but it's not working with UIAxes. And I want to save graph as an image.

2 件のコメント

Walter Roberson
Walter Roberson 2023 年 8 月 7 日
Did you install exportfig() from the File Exchange (or use Add-On Explorer) ? exportfig() is not built in to MATLAB.
Kaan Öner
Kaan Öner 2023 年 8 月 7 日

サインインしてコメントする。

Kaan Öner
Kaan Öner 2023 年 8 月 7 日

0 投票

I cant use these functions so I decided to use save button on the graph.

カテゴリ

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

製品

リリース

R2023a

質問済み:

2023 年 8 月 7 日

回答済み:

2023 年 8 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by