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+
- 资源: 6894
最新资源
- 基于Python的实时垃圾分类系统项目源码(高分毕设项目)
- 51单片机设计vb与单片机源码多功能工业控制平台
- Qt诺基亚官方中文教程-Qt的数据类型,Qt框架中的字符串和文件处理机制详述
- java打飞机游戏毕业设计源码.zip
- MSP430单片机学习资料MPS430F149单片机之-ADS1241的接口设计与实现
- java多线程与线程安全实践-基于Http协议的断点续传源码.zip
- C-GUI-Programming-with-Qt-4.rar
- 基于ssm的WEB校园线上点餐源码(java毕业设计完整源码).zip
- java公共资源模块的设计与开发源码.zip
- MSP430单片机学习资料MPS430F149单片机之-AD转换器TLV2541的设计与应用
- java画图形学源代码.zip
- 无线传感网技术及应用(蔡教武)配套源代码.rar
- GX123456789.txt
- 万能工具磨床sw20全套技术资料100%好用.zip
- java画图形学程序源代码.zip
- example4-2.py
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈