MATLAB save image from GUI using push button
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2013-11-27
See getframe(). Also see saveas() and print(), both of which would be likely be more appropriate than getframe() for your purpose.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Printing and Saving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!