p6_24.m

来自「Advanced Engineering Mathematics using M」· M 代码 · 共 21 行

M
21
字号
% 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 + =
减小字号Ctrl + -
显示快捷键?