✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
本文论述动态下光学系统及元件的物象共扼关系
⛄ 部分代码
function varargout = test2(varargin)
% TEST2 MATLAB code for test2.fig
% TEST2, by itself, creates a new TEST2 or raises the existing
% singleton*.
%
% H = TEST2 returns the handle to a new TEST2 or the handle to
% the existing singleton*.
%
% TEST2('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in TEST2.M with the given input arguments.
%
% TEST2('Property','Value',...) creates a new TEST2 or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before test2_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to test2_OpeningFcn via
text(handles.axes1,-100,7,'C','Linewidth',3,'fontsize',20,'color',[0 0 0]/255,'FontAngle','italic','fontname','Times New Roman'); %画字母C
text(handles.axes1,-102,0,'·','Linewidth',3,'fontsize',30,'color',[0 0 0]/255,'FontAngle','italic','fontname','Times New Roman'); %画球心
text(handles.axes1,0,0,'O','Linewidth',3,'fontsize',20,'color',[0 0 0]/255,'FontAngle','italic','fontname','Times New Roman'); %画字母O
text(handles.axes1,-30,90,'凹面反射镜','Linewidth',3,'fontsize',15,'color',[0 0 0]/255,'FontAngle','italic','fontname','MS Sans Serif'); %画标题“凹面反射镜”
text(handles.axes1,-250,90,'物方光线BC','Linewidth',3,'fontsize',15,'color',[0 0 0]/255,'FontAngle','italic','fontname','MS Sans Serif'); %画标题“物方光线BC”
text(handles.axes1,Ob_distance+2,7,'A','Linewidth',3,'fontsize',20,'color',[0 0 0]/255,'FontAngle','italic','fontname','Times New Roman'); %画 AB
text(handles.axes1,Ob_distance+2,45,'B','Linewidth',3,'fontsize',20,'color',[0 0 0]/255,'FontAngle','italic','fontname','Times New Roman');
text(handles.axes1,Im_distance+2,-5,'A^{,}','Linewidth',3,'fontsize',20,'color',[0 0 0]/255,'FontAngle','italic','fontname','Times New Roman'); %画 A'B'
text(handles.axes1,Im_distance+2,Im_height-5,'B^{,}','Linewidth',3,'fontsize',20,'color',[0 0 0]/255,'FontAngle','italic','fontname','Times New Roman');
axis equal; %划定显示窗口范围
ylim(handles.axes1,[-90 90]);
xlim(handles.axes1,[-260 0]);
axis off;
hold off;
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
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
⛄ 运行结果
⛄ 参考文献
[1] XIONG Ze-ben, 熊泽本, ZHOU Xian-mei,等. 基于Matlab的光学衍射实验模拟[C]// 全国高等学校第十三届演示实验教学研讨会. ;全国高等学校物理演示实验教学研究会;;北京工业大学;;, 2017.
[2] 庄建, 青莉. 基于Matlab的光学实验仿真平台[J]. 成都大学学报:自然科学版, 2006, 25(1):3.
[3] 钱淑珍, 陈芳芳, 倪小芳,等. 基于Matlab的光学干涉现象仿真[J]. 科技视界, 2012, 000(001):19-20,22.
[4] 王志坚, 郑建平. 光学系统及元件动态下物象共轭理论[J]. 长春光学精密机械学院学报, 1992.
⛳️ 代码获取关注我
❤️部分理论引用网络文献,若有侵权联系博主删除
❤️ 关注我领取海量matlab电子书和数学建模资料