第1个回答 2012-05-17
% --- 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({'*.jpg';'*.bmp';'*.gif'}, '开始');
str=[pathname filename];
im=imread(str);
axes(handles.axes1);
imshow(im);本回答被提问者采纳