📄 p6_24.m
字号:
% P6_24.M Plot Bessel Function (Fraunhofer)% (2*J1(pi*x)/pi*x)^2 (Even Function)xplus=[.01:.01:4];% Reverse columns of xplus. nth column of xplus= 1st column of xneqn=length(xplus)xneg=-xplus(1,n:-1:1);x=[xneg 0 xplus];arg=xplus*pi;f=2*bessel(1,arg);F=(f./arg).^(2);F1=F(1,n:-1:1);Fran=[F1 1 F];clfplot(x,Fran)title('Fraunhofer Diffraction Pattern')xlabel('x')ylabel('Intensity')zoom% % Add a few comments to explain the script%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -