資源簡介
采用matlab編寫的渦旋光束干涉圖樣計算程序。

代碼片段和文件信息
clc
clear?all
close?all
lambda=1.064e-6;????????k=2*pi/lambda;
x=(-1:0.01:1)*1e-4;?????y=x;????????????[XY]=meshgrid(xy);
phi=atan2(YX);
for?l=-4:4
????E1=exp(-i*k*X);
????E2=exp(i*l*phi);
????c=E1+E2;
????E=c.*conj(c);
????E=(E-min(min(E)))/(max(max(E))-min(min(E)));
????subplot(33l+5)
????pcolor(xyE)
????shading?interp
????colormap?gray
????axis?off
????title(num2str(l))
%?????waitforbuttonpress
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????434??2016-04-26?00:15??vortex.m
-----------?---------??----------?-----??----
??????????????????434????????????????????1
評論
共有 條評論