MATLAB save image from GUI using push button
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
T
le 27 Nov 2013
Réponse apportée : Walter Roberson
le 27 Nov 2013
I need help in exporting the figure that is embedded in your GUI:
axes(handles.axes3);
[FileName, PathName] = uiputfile('*.jpg', 'Save As');
Name = fullfile(PathName, FileName);
imwrite(?????, Name, 'jpg');
What does in the question mark? I put in handles.axes3 and it creates the file at 1kb but there's no image.
What am i doing wrong?
0 commentaires
Réponse acceptée
Walter Roberson
le 27 Nov 2013
See getframe(). Also see saveas() and print(), both of which would be likely be more appropriate than getframe() for your purpose.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Printing and Saving dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!