📄 zhangyx.m
字号:
function varargout = zhangyx(varargin)
% ZHANGYX M-file for zhangyx.fig
% ZHANGYX, by itself, creates a new ZHANGYX or raises the existing
% singleton*.
%
% H = ZHANGYX returns the handle to a new ZHANGYX or the handle to
% the existing singleton*.
%
% ZHANGYX('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in ZHANGYX.M with the given input arguments.
%
% ZHANGYX('Property','Value',...) creates a new ZHANGYX or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before zhangyx_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to zhangyx_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help zhangyx
% Last Modified by GUIDE v2.5 31-May-2005 19:17:41
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @zhangyx_OpeningFcn, ...
'gui_OutputFcn', @zhangyx_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin & isstr(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
% End initialization code - DO NOT EDIT
% --- Executes just before zhangyx is made visible.
function zhangyx_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 zhangyx (see VARARGIN)
% Choose default command line output for zhangyx
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes zhangyx wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = zhangyx_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%设置当前窗口名
str='自动控制原理CAI设计'
set(gcf,'name',str,'numbertitle','off')
%绘制草帽图形
[x,y]=meshgrid(-8:0.5:8);
r=sqrt(x.^2+y.^2)+eps;
z=sin(r)./r;
surf(x,y,z)
shading interp
axis off
% Get default command line output from handles structure
varargout{1} = handles.output;
% --------------------------------------------------------------------function aim_Callback(hObject, eventdata, handles)% hObject handle to aim (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)zyx2% --------------------------------------------------------------------function content_Callback(hObject, eventdata, handles)% hObject handle to content (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function frequency_Callback(hObject, eventdata, handles)% hObject handle to frequency (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function transfer_Callback(hObject, eventdata, handles)% hObject handle to transfer (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function picture_Callback(hObject, eventdata, handles)% hObject handle to picture (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)lab03% --------------------------------------------------------------------function point_Callback(hObject, eventdata, handles)% hObject handle to point (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)zhang3% --------------------------------------------------------------------function space_Callback(hObject, eventdata, handles)% hObject handle to space (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)zhang2% --------------------------------------------------------------------function analyse_Callback(hObject, eventdata, handles)% hObject handle to analyse (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function exercise_Callback(hObject, eventdata, handles)% hObject handle to exercise (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)zyx7% --------------------------------------------------------------------function quit_Callback(hObject, eventdata, handles)% hObject handle to quit (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function quitfrequency_Callback(hObject, eventdata, handles)% hObject handle to quitfrequency (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%关闭提示对话框button=questdlg('确定要关闭此窗口吗?',...
'close operation','Yes','No','No');
if strcmp(button,'Yes')
close
elseif strcmp(button,'No')
disp('Canceled file operation')
end% --------------------------------------------------------------------function quitmatlab_Callback(hObject, eventdata, handles)% hObject handle to quitmatlab (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)
%关闭提示对话框button=questdlg('确定要退出Matlab吗?',...
'exit operation','Yes','No','No');
if strcmp(button,'Yes')
exit
elseif strcmp(button,'No')
disp('Canceled file operation')
end% --------------------------------------------------------------------function model1_Callback(hObject, eventdata, handles)% hObject handle to model1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)zyx6% --------------------------------------------------------------------function model2_Callback(hObject, eventdata, handles)% hObject handle to model2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function model3_Callback(hObject, eventdata, handles)% hObject handle to model3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)
zhang4% --------------------------------------------------------------------function model4_Callback(hObject, eventdata, handles)% hObject handle to model4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)lab03% --------------------------------------------------------------------function model5_Callback(hObject, eventdata, handles)% hObject handle to model5 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)zhang3% --------------------------------------------------------------------function Untitled_6_Callback(hObject, eventdata, handles)% hObject handle to Untitled_6 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)zhang2% --------------------------------------------------------------------function Untitled_7_Callback(hObject, eventdata, handles)% hObject handle to Untitled_7 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)zyx10
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -