function varargout = Lightning_Protection(varargin)
% LIGHTNING_PROTECTION M-file for Lightning_Protection.fig
% LIGHTNING_PROTECTION, by itself, creates a new LIGHTNING_PROTECTION or raises the existing
% singleton*.
%
% H = LIGHTNING_PROTECTION returns the handle to a new LIGHTNING_PROTECTION or the handle to
% the existing singleton*.
%
% LIGHTNING_PROTECTION('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in LIGHTNING_PROTECTION.M with the given input arguments.
%
% LIGHTNING_PROTECTION('Property','Value',...) creates a new LIGHTNING_PROTECTION or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before Lightning_Protection_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to Lightning_Protection_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 Lightning_Protection
% Last Modified by GUIDE v2.5 24-Nov-2012 19:54:11
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Lightning_Protection_OpeningFcn, ...
'gui_OutputFcn', @Lightning_Protection_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 Lightning_Protection is made visible.
function Lightning_Protection_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 Lightning_Protection (see VARARGIN)
% Choose default command line output for Lightning_Protection
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes Lightning_Protection wait for user response (see UIRESUME)
%uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = Lightning_Protection_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;
function res_Callback(hObject, eventdata, handles);
% hObject handle to res (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 res as text
%str2double(get(hObject,'String')); %returns contents of res as a double
% --- Executes during object creation, after setting all properties.
function res_CreateFcn(hObject, eventdata, handles)
% hObject handle to res (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 Vclamp_Callback(hObject, eventdata, handles)
% hObject handle to Vclamp (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 Vclamp as text
%str2double(get(hObject,'String')); %returns contents of Vclamp as a double
% --- Executes during object creation, after setting all properties.
function Vclamp_CreateFcn(hObject, eventdata, handles)
% hObject handle to Vclamp (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 Rret_Callback(hObject, eventdata, handles)
% hObject handle to Rret (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 Rret as text
%str2double(get(hObject,'String')); %returns contents of Rret as a double
% --- Executes during object creation, after setting all properties.
function Rret_CreateFcn(hObject, eventdata, handles)
% hObject handle to Rret (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 WF.
function WF=WF_Callback(hObject, eventdata, handles)
% hObject handle to WF (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%contents = cellstr(get(hObject,'String')) %returns WF contents as cell array
%contents{get(hObject,'Value')}; %returns selected item from WF
% --- Executes during object creation, after setting all properties.
function WF_CreateFcn(hObject, eventdata, handles)
% hObject handle to WF (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
% --- Executes on selection change in freq.
function freq_Callback(hObject, eventdata, handles)
% hObject handle to freq (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 freq contents as cell array
% contents{get(hObject,'Value')} returns selected item from freq
% --- Executes during object creation, after setting all properties.
function freq_CreateFcn(hObject, eventdata, handles)
% hObject handle to freq (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
% --- Executes on selection change in direction.
function direction_Callback(hObject, eventdata, handles)
% hObject handle to direction (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user dat

小贝德罗
- 粉丝: 92
- 资源: 1万+
最新资源
- CarSim与Simulink联合仿真:实时检测与动态规划路径实现超车换道(基于MPC模型预测控制).pdf
- CarSim与Simulink联合仿真:实时检测与动态规划路径实现超车换道(基于MPC模型预测控制与参数配置).pdf
- Carsim与Simulink联合仿真:线性二自由度KF估计质心侧偏角和横摆角速度的Sfunction实现.pdf
- Carsim自动驾驶车辆漂移控制:LQR算法下的B级车与多种车型定圆稳态漂移模拟.pdf
- CarSim与Simulink联合仿真:实时检测与动态规划路径实现超车换道——基于MPC模型预测控制.pdf
- 基于战略的人力资源规划.pdf
- CatBoost-shap集成模型用于分类任务的Python代码实现与变量解释.pdf
- CatBoost-shap集成模型在回归问题上的应用及变量解释分析.pdf
- CATIA DMU转向系统运动仿真:麦弗逊式独立悬架与齿轮齿条转向器的运动特性分析(可编辑,无参数).pdf
- catia模型转入ansys进行静力学仿真分析.pdf
- CA元胞自动机源程序代码:模拟动态再结晶的源代码.pdf
- CC1101反向电路:低功耗无线传输的芯片设计与学习指南.pdf
- CC2530无线升级程序(上位机+下位机全套).pdf
- CCD检测与MODBUS通讯:模块化大型系统编程的经典案例——威纶通6071IP触摸屏组态的详细注释程序.pdf
- CCM与CRM模式下有源功率因数校正(PFC)电路仿真研究.pdf
- CCSDS LDPC译码器设计:采用修正最小和译码算法,支持(8176,7154)与(1280,1024)码组,可定制与验证的c语言与vivado仿真实现.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



评论0