Demo entry 6357058

1

   

Submitted by 1 on Apr 21, 2017 at 03:32
Language: Matlab. Code size: 433 Bytes.

% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global im
[filename,pathname]=uigetfile({'*.png';'*.jpg'},'选择图片');
str=[pathname,filename];
im=imread(str);
axes(handles.axes1);
imshow(im)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).