Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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 Ansicht (letzte 30 Tage)
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)
axes(handles.axes1);
imshow(I);
How can i import variable 'I' into my pushbutton function.

Antworten (1)

Ahmet Cecen
Ahmet Cecen am 28 Okt. 2016
Bearbeitet: Ahmet Cecen am 28 Okt. 2016
I don't have the time to write the actual thing here at the moment, but check one of my simpler GUIs here to see how it is done:

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by