- Adjust Figure Size: Before exporting the figure using 'exportapp', you can try adjusting the size of the figure to a larger dimension. This will effectively increase the resolution of the exported image. For example:
how to improve quality of exportapp?
20 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi
Just wondering if anybody know how to improve quality when I use exportapp(fig,plot_file).
for example by using exportgraphics(fig,plot_file_2,'Resolution',300) the resolution is 300 but it is not work with exportapp function probably come in future!!!
Thanks for help in advance
Mostafa
0 Commenti
Risposte (1)
Mrutyunjaya Hiremath
il 31 Lug 2023
MATLAB's App Designer does not provide a built-in option to directly control the resolution of the exported image. This is because the 'exportapp' function is designed to export the entire app as an image, including the user interface components, which may have varying sizes and complexities. Therefore, it doesn't directly map to a single resolution value like 'exportgraphics' does for individual figures.
However, there are some strategies you can try to improve the quality of the exported image:
fig = uifigure;
% Create and plot your UI components here...
% Adjust the figure size before exporting:
fig.Position = [100, 100, 800, 600]; % Set a larger width and height
exportapp(fig, 'plot_file.png');
Vedere anche
Categorie
Scopri di più su Printing and Saving in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!