【MATLAB GUI】 5. 图像处理菜单(菜单编辑器)
function open_Callback(hObject, eventdata, handles)
% hObject handle to open (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[file_name,path]=uigetfile('*.jpg');
axes(handles.axes1);%设置第一个坐标区为当前坐标区
imshow(fullfile(path,file_name));
set(handles.axes1,'userdata',fullfile(path,file_name));