function varargout = youlovestudy(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @youlovestudy_OpeningFcn, ...
'gui_OutputFcn', @youlovestudy_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% 上面是matlab自己生成代码,不需要编辑
function youlovestudy_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
set(handles.axes1,'visible','off');
axes(handles.axes1);
%表示的是将上面的坐标轴做为当前坐标轴,在其上做图.
image = imread('不可能打工.png');
imshow(image);
set(handles.axes2,'visible','off');
axes(handles.axes2);
image = imread('我爱学习.png');
imshow(image);
guidata(hObject, handles);
function varargout = youlovestudy_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
function pushbutton1_Callback(hObject, eventdata, handles)
close(youlovestudy);
set(youlovestudy2,'Visible','on');
function pushbutton2_Callback(hObject, eventdata, handles)
close(youlovestudy);
set(youlovestudy3,'Visible','on');
function notstudy_CreateFcn(hObject, eventdata, handles)
function uipanel3_CreateFcn(hObject, eventdata, handles)
function axes2_CreateFcn(hObject, eventdata, handles)
function axes1_CreateFcn(hObject, eventdata, handles)
function axes1_ButtonDownFcn(hObject, eventdata, handles)
function pushbutton1_ButtonDownFcn(hObject, eventdata, handles)
function varargout = youlovestudy2(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @youlovestudy2_OpeningFcn, ...
'gui_OutputFcn', @youlovestudy2_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% 上面是matlab自己生成代码,不需要编辑
function youlovestudy2_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
set(handles.axes1,'visible','off');
axes(handles.axes1);
image = imread('真香.png');
imshow(image);
guidata(hObject, handles);
function varargout = youlovestudy2_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
function pushbutton1_Callback(hObject, eventdata, handles)
close(youlovestudy2);
set(youlovestudy3,'Visible','on');
这个东西做好了打包发给朋友还蛮好玩的~
嘿嘿,第一次发博客,多多包涵嗷~