function varargout = tiaowen(varargin)
% TIAOWEN MATLAB code for tiaowen.fig
% TIAOWEN, by itself, creates a new TIAOWEN or raises the existing
% singleton*.
%
% H = TIAOWEN returns the handle to a new TIAOWEN or the handle to
% the existing singleton*.
%
% TIAOWEN('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in TIAOWEN.M with the given input arguments.
%
% TIAOWEN('Property','Value',...) creates a new TIAOWEN or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before tiaowen_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to tiaowen_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 tiaowen
% Last Modified by GUIDE v2.5 08-Apr-2016 13:35:28
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @tiaowen_OpeningFcn, ...
'gui_OutputFcn', @tiaowen_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
% End initialization code - DO NOT EDIT
% --- Executes just before tiaowen is made visible.
function tiaowen_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 tiaowen (see VARARGIN)
% Choose default command line output for tiaowen
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes tiaowen wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = tiaowen_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)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in radiobutton1.
function radiobutton1_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of radiobutton1
guidata(hObject,handles);
val=get(handles.radiobutton1,'Value');
if val
set(handles.edit4,'Enable','on');
set(handles.popupmenu3,'Enable','on');
end
% --- Executes on button press in radiobutton2.
function radiobutton2_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of radiobutton2
guidata(hObject,handles);
val=get(handles.radiobutton2,'Value');
if val
set(handles.edit4,'Enable','off');
set(handles.popupmenu3,'Enable','off');
end
% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = cellstr(get(hObject,'String')) returns popupmenu1 contents as cell array
% contents{get(hObject,'Value')} returns selected item from popupmenu1
guidata(hObject,handles);
val=get(hObject,'Value');
switch val
case 1
set(handles.edit3,'Enable','off');
case 2
set(handles.edit3,'Enable','off');
case 3
set(handles.edit3,'Enable','on');
end
% --- Executes during object creation, after setting all properties.
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit1_Callback(hObject, eventdata, handles)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit1 as text
% str2double(get(hObject,'String')) returns contents of edit1 as a double
str=get(hObject,'String');
set(handles.edit6,'String',str);
% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit2_Callback(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit2 as text
% str2double(get(hObject,'String')) returns contents of edit2 as a double
% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit3_Callback(hObject, eventdata, handles)
% hObject handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit3 as text
% str2double(get(hObject,'String')) returns contents of edit3 as a double
% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on selection change in popupmenu2.
function popupmenu2_Callback(hObject, even
海神之光
- 粉丝: 5w+
- 资源: 6110
最新资源
- 一个基于C语言开发的极其简易的shell命令行程序的实现 300行代码包括详细的注释 .zip
- MyBatis-Flex 一个优雅的 MyBatis 增强框架
- 一个使用Java语言编写的简易学生信息管理系统,录入的学生信息保存在电脑本地D盘根目录下 支持基本的增、删、改、查操作 .zip
- 一个pyside6开发的网易云音乐第三方客户端,使用了NeteaseCloudMusic-PythonSDK,HFUT Python语言与系统设计课程大作业.zip
- xhttp 是一个用 Go 语言编写的 HTTP 客户端库,旨在提供类似于 Python 中 requests 库的简洁易用的 API 通过 xhttp,您可以轻松地进行 HTTP 请求,处理.zip
- leetcode 1.两数之和
- Vue开发资源汇总Vux ★8133 - 基于Vue和WeUI的组件库
- vSphere-vCenter-Esxi-Vmware虚拟机管理工具,可以连接到任何vCenter机器进行批量创建主机,批量关机,批量开机,批量重启,批量删除释放等操作 后端接口Django开.zip
- sfd是一个GO语言开发的,简单易用的下载网络文件(图片,HTML,视频,音频)小工具.zip
- 4-8 Spring 源码深度剖析(四).rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈