This question is closed. Reopen it to edit or answer.
Hello! I am new to matlab. I just want to execute a simple GUI code in which i can display an image from base workspace through callback function(pushbutton1).
1 view (last 30 days)
It is working when i read the image inside
the callback function but not
ouside like given below:
I = imread('Edge.png'); % base workspace variable.
function pushbutton1_Callback(hObject, eventdata, handles)
How can i import variable 'I' into my pushbutton function.