资源简介

用于计算入射光经光栅衍射后,各级衍射光的出射光情况。

资源截图

代码片段和文件信息

wavelength_incidence=2700;
grating_frequency=500;
angle_incidence=42.5;
diffracted_order_1=1;
diffracted_order_0=0;


grating_period=1/grating_frequency*10^-3;
wavelength_incidence=wavelength_incidence*10^-9;
diffracted_angle_1=(asin(wavelength_incidence*diffracted_order_1/grating_period-sin(angle_incidence*pi/180)))/pi*180;
diffracted_angle_0=(asin(wavelength_incidence*diffracted_order_0/grating_period-sin(angle_incidence*pi/180)))/pi*180;

A=0:0.1:1;
x_diffracted_1=A*sin(diffracted_angle_1/180*pi);
y_diffracted_1=A*cos(diffracted_angle_1/180*pi);
plot(x_diffracted_1y_diffracted_1‘g‘‘linewidth‘3)
hold on
x_diffracted_0=A*sin(diffracted

评论

共有 条评论