Created
August 27, 2016 18:39
-
-
Save juniorhero/94f55a18f76da3001cfcd065afc607ba to your computer and use it in GitHub Desktop.
Matlab GUI Button Press Fetches Image url and Show Image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% --- Executes on button press in pushbutton2. | |
function pushbutton2_Callback(hObject, eventdata, handles) | |
handles.output = hObject; | |
[fn pn] = uigetfile('*.png','select png file'); | |
complete = strcat(pn,fn); | |
set(handles.edit1,'string',complete); | |
I = imread(complete); | |
imshow(I,[]); | |
guidata(hObject, handles); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment