毕业论文

打赏
当前位置: 毕业论文 > 物理论文 >

MATLAB实现杨氏双缝干涉仿真实验

时间:2023-01-27 10:13来源:毕业论文
MATLAB实现杨氏双缝干涉仿真实验。基于MATLAB中的GUI工具,GUI又被称为图形用户界面。杨氏双缝干涉实验的现象是在屏幕上形成明暗等间距的条纹

摘要实验是物理学习中必不可少的一部分,然而有些物理实验在实际生活中很难开展。尤其是光学部分的实验,其实验要求非常苛刻,在实验教学时即使能够达到实验要求,但由于外界条件的影响,实验效果和现象往往差强人意。在实验教学时,绝大多数高校都采用仿真实验代替实际实验。仿真实验的操作简单快捷,不受环境和位置的影响,能够实现多人异地同时进行实验。此外,仿真实验效果和现象能够真实反映光学原理,得出科学数据,不需要大量的实验仪器和设备有效的避免了仪器的损耗。87219
本文详细说明如何运用大学所学的MATLAB来开发一款能够仿真杨氏双缝干涉实验的软件。该软件的开发基于MATLAB中的GUI工具,GUI又被称为图形用户界面。杨氏双缝干涉实验的现象是在屏幕上形成明暗等间距的条纹,条纹的明暗位置与波长,双缝之间的距离以及双缝到屏幕的距离有关。根据杨氏双缝干涉实验的特点,在MATLAB中编写相关代码,将矩阵中的所有元素转化为对应的色彩,以此表示明暗间隙的条纹。在GUI界面上设计出一系列的控件和图形窗口,每个控件的功能都不相同,将编写完成的代码插入到对应的控件代码处,实现仿真杨氏双缝干涉实验软件的开发
程序代码的编写以杨氏双缝干涉实验理论为基础,通过运行本软件,用户能够在软件的左半部分看到明暗间隙的条纹以及对应的光强变化曲线,在右半部分看到对应的每个自变量的值,完全符合实际实验现象。因为没有外界光线的影响,本软件产生的明暗条纹比实际实验的明暗条纹更加清晰,另外本软件的最大特点是动态及时的观察明暗条纹与光强变化之间的关系,这是实际实验无法实现的。由于本软件只呈现了最终的明暗间隙条纹和对应的变量值,并没有出现仿真光源,双缝以及屏幕的图标,这是本软件的美中不足。
毕业论文关键词:MATLAB;仿真;杨氏双缝干涉实验;GUI


Abstract Experiment is an essential part of physics learning。 However, some physics experiments are difficult to carry out in real life。 Especially the optical portion of the experiment。 Its demanding is very harsh, In the experiment teaching even if they can meet these criteria, but due to the influence of external conditions。 Results and phenomena of experiment are often unsatisfactory。 Therefore, in experimental teaching, the vast majority of colleges and universities use Simulation experiments instead of actual experiments。 the operation of simulation experiment is Simple and quick, simulation experiment is not affected by the environment and location, it enables people in different places at the same time to experiment。 In addition, results and phenomenon of Simulation experiment can reflect the optical theory and Obtain scientific data。 It does not require a large amount of laboratory instruments and equipment as a result avoid the loss of the instrument effectively。
This article tells us how to use MATLAB which we study in university to develop a Simulation Young's double slit experiment software in details。 The development of The software is based on GUI of MATLAB, GUI is also known as graphical user interface。 Young's double-slit experiment phenomenon is spaced stripes of light and dark on the screen, position of light and dark stripes is related to wavelength, distance between the two slits and the distance of two slits to the screen。 On the GUI interface, designed two axes, one of the axes used to display double-slit interference experiment produce light and dark stripes, another axis is used to indicate changes in light intensity curve, On the right side of these two axes。 There are three editable text boxes and three static text box and a button, Static text box strings are set to the wavelength, the distance between the double slit and distance of double slit to the screen, then complete the set of static text box is placed above the editable text box as a description of each function in an editable text box。 After you finish setting, Clicking the Run button, MATLAB will automatically generate a series of codes, move the cursor to the button corresponding to the code and Young's double- slit interference experiment principle code is entered into, command results are displayed in grayscale design completed two axes。 MATLAB实现杨氏双缝干涉仿真实验:http://www.youerw.com/wuli/lunwen_129803.html
------分隔线----------------------------
推荐内容