Matlab实现杨氏双缝干涉和(单缝+多缝+圆孔+矩孔)衍
射
1 简介
从光的电磁理论出发构建模型,运用MATLAB软件的矩阵计算能力,动态模拟了杨氏双缝干涉实验的全过
程,并生成了一个便于实验教学演示的GUI用户界面.以日光为白光光源,把日光的可见光谱均匀分割为2
000份色光,利用Matlab软件实现了白光夫琅和费不同形状矩孔衍射实验的计算机仿真,并根据仿真结果分
析了衍射图像的分布特征.结果表明,白光夫琅和费矩孔衍射的仿真图像,清晰,鲜艳而逼真,中央亮斑为白色,
其余条纹则内紫外红;衍射的光强分布为两个相互垂直的单缝衍射因子相互调制的结果,单缝衍射是矩孔衍
射的特例.
2 部分代码
function varargout = untitled1(varargin)
% UNTITLED1 MATLAB code for untitled1.fig
% UNTITLED1, by itself, creates a new UNTITLED1 or raises the existing
% singleton*.
%
% H = UNTITLED1 returns the handle to a new UNTITLED1 or the handle to
% the existing singleton*.
%
% UNTITLED1('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in UNTITLED1.M with the given input arguments.
%
% UNTITLED1('Property','Value',...) creates a new UNTITLED1 or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before untitled1_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to untitled1_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 untitled1