1 简介
Matlab 菲涅尔系数计算
2 部分代码
function varargout = Fresnel(varargin)
% FRESNEL MATLAB code for Fresnel.fig
% FRESNEL, by itself, creates a new FRESNEL or raises the existing
% singleton*.
%
% H = FRESNEL returns the handle to a new FRESNEL or the handle to
% the existing singleton*.
%
% FRESNEL('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in FRESNEL.M with the given input arguments.
%
% FRESNEL('Property','Value',...) creates a new FRESNEL or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before Fresnel_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to Fresnel_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 Fresnel
% Last Modified by GUIDE v2.5 28-May-2021 12:02:27
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Fresnel_OpeningFcn, ...
'gui_OutputFcn', @Fresnel_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 on button press in radiobutton_ps.
function radiobutton_ps_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton_ps (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 radiobutton_ps
% --- Executes on button press in radiobutton_pp.
function radiobutton_pp_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton_pp (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 radiobutton_pp
% --- Executes on button press in radiobutton_Tp.
function radiobutton_Tp_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton_Tp (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 radiobutton_Tp
% --- Executes on button press in radiobutton_ts.
function radiobutton_ts_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton_ts (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 radiobutton_ts
% --- Executes on button press in radiobutton_rrs.
function radiobutton_rrs_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton_rrs (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 radiobutton_rrs
% --- Executes on selection change in popupmenu_model.
function popupmenu_model_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu_model (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 popupmenu_model contents as cell array
% contents{get(hObject,'Value')} returns selected item from popupmenu_model
Model = get(handles.popupmenu_model,'Value');
if Model == 1
set(handles.uipanel11,'Visible','off');
set(handles.uipanel7,'Visible','on');
set(handles.uipanel8,'Visible','on');
else
set(handles.uipanel11,'Visible','on');
set(handles.uipanel7,'Visible','off');
set(handles.uipanel8,'Visible','off');
end
% --- Executes during object creation, after setting all properties.
function popupmenu_model_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu_model (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 button press in radiobutton_pn.
function radiobutton_pn_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton_pn (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 radiobutton_pn
% --- Executes on button press in radiobutton_Tn.
function radiobutton_Tn_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton_Tn (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 radiobutton_Tn
3 仿真结果
4 参考文献
[1]连松友等. "光学增透和增反多层膜的设计与计算." 材料科学 7.1(2017):10.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。