Manage data between different gui's.
조회 수: 3 (최근 30일)
이전 댓글 표시
How can I send an image ( which is uploaded in a gui_1 ) to a gui_2 and show it there in an axes? I know how to do this with having a pushbutton in gui_2, but I would like the image to be shown with the press of a pushbutton in the previous gui, for example "next" . Does anyone know?
댓글 수: 0
채택된 답변
Jan
2012년 12월 10일
It works by exactly the same method from another GUI also: You need the handle of the axes-object to show the image in. Either get this handle when GUI_1 is created, e.g. as input, when the GUI_2 is used to create GUI_1. Or search for the handle dynamically using findobj and a unique tag.
Sharing data between different GUIs has been discussed dozens of times in this forum. Perhaps you find the threads using the forum's search. A good advice is to study Matt Fig's GUI examples: http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!