Matlab App designer export figure

21 visualizaciones (últimos 30 días)
Kaan Öner
Kaan Öner el 7 de Ag. de 2023
Respondida: Kaan Öner el 7 de Ag. de 2023
I want to export figure image. How can I export a figure in matlab app designer?
  2 comentarios
VBBV
VBBV el 7 de Ag. de 2023
Editada: VBBV el 7 de Ag. de 2023
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 el 7 de Ag. de 2023
No It's desktop app. Matlab App designer.

Iniciar sesión para comentar.

Respuestas (3)

VBBV
VBBV el 7 de Ag. de 2023
Editada: VBBV el 7 de Ag. de 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 comentario
VBBV
VBBV el 7 de Ag. de 2023
Editada: VBBV el 7 de Ag. de 2023
Try using exportfig option available from FEX
https://in.mathworks.com/matlabcentral/fileexchange/727-exportfig

Iniciar sesión para comentar.


Kaan Öner
Kaan Öner el 7 de Ag. de 2023
Thanks but it's not working with UIAxes. And I want to save graph as an image.
  2 comentarios
Walter Roberson
Walter Roberson el 7 de Ag. de 2023
Did you install exportfig() from the File Exchange (or use Add-On Explorer) ? exportfig() is not built in to MATLAB.
Kaan Öner
Kaan Öner el 7 de Ag. de 2023

Iniciar sesión para comentar.


Kaan Öner
Kaan Öner el 7 de Ag. de 2023
I cant use these functions so I decided to use save button on the graph.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by