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에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!