Matlab App designer export figure

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

2 Commenti

VBBV
VBBV il 7 Ago 2023
Modificato: VBBV il 7 Ago 2023
If its a Webapp, then the function exportapp is not valid, try also exporting the figure instead of just axes alone
No It's desktop app. Matlab App designer.

Accedi per commentare.

Risposte (3)

VBBV
VBBV il 7 Ago 2023
Modificato: VBBV il 7 Ago 2023
% 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 Commento

VBBV
VBBV il 7 Ago 2023
Modificato: VBBV il 7 Ago 2023
Try using exportfig option available from FEX
https://in.mathworks.com/matlabcentral/fileexchange/727-exportfig

Accedi per commentare.

Kaan Öner
Kaan Öner il 7 Ago 2023

0 voti

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

2 Commenti

Did you install exportfig() from the File Exchange (or use Add-On Explorer) ? exportfig() is not built in to MATLAB.

Accedi per commentare.

Kaan Öner
Kaan Öner il 7 Ago 2023

0 voti

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

Categorie

Scopri di più su Printing and Saving in Centro assistenza e File Exchange

Prodotti

Release

R2023a

Richiesto:

il 7 Ago 2023

Risposto:

il 7 Ago 2023

Community Treasure Hunt

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

Start Hunting!

Translated by