how do i transfer matrix variable of an image from gui callback function to a another call back function (pushbutton1_Callback ----> pushbutton2_Callback)
Show older comments
function pushbutton1_Callback(hObject, eventdata, handles)
handles.imgin = uigetfile();
guidata(hObject,handles)
i need to transfer loaded image matrix variable to below function
function pushbutton2_Callback(hObject, eventdata, handles)
imgin = guidata(hObject,handles.imgin);
but i fail to get the loaded image matrix from here
1 Comment
Stephen23
on 31 Aug 2016
How about simply reading the MATLAB documentation?:
Accepted Answer
More Answers (1)
Image Analyst
on 31 Aug 2016
0 votes
Geoff's solution is one of several suggested in the FAQ. See the FAQ if you want to see alternatives. http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!