matlab GUI 调用代码画图

  • 修改axes的属性为img

 function main_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to main (see VARARGIN)

% Choose default command line output for main
handles.output = hObject;
guidata(hObject, handles);
axes(handles.img1);

%%%%%编写的代码1%%%%%

 axes(handles.img2);

%%%编写的代码2%%%%%%%

posted @ 2020-06-01 10:39  学渣奋进  阅读(1341)  评论(0编辑  收藏  举报