function tiaoxing(bochang,N,m,L,handles) *|@386\
global n 'C>sYSL
global point V:+z 3)qF
k=2*pi/bochang; 8NJT:6Q7l
a=m*1e+006; Zdfh*MHMg
deltax=2*a/point;%取单位长度 "-rqL
xx=-a:deltax:a; g^\!> i
L=L*1e+006; %E [HMq<H
nn=length(xx); Zzb?Nbf
u=ones(1,nn); Nn U`u.$D
jj=1:nn; DhsvN&yNM
for n=1:N %进行迭代 &$l#0?Kc^
F'B0\v=
for b=1:nn _]eyt_
uu(b)=sqrt(i*exp(-i*k*L)/(bochang*L)).*... O,NVhU7,
sum(exp(-i*k*((b-jj)*deltax).^2./(2*L)).*u)*deltax;% C\dk}A
_qo\E=E
end v?%vB#A^
1i)3!fH0:
ma=max(uu);%归一化 ~sq@^<M)s
uu=uu./ma; f=S2O_Ee
u=uu; H4sc7-
axes(handles.axes1); "I9 r>=
plot(xx,abs(u)) [%~yY&
axes(handles.axes2); @S>;t)\J
plot(xx,angle(u)) 7;&,LH
set(handles.edit10,'string',num2str(n));%迭代次数显示到面板 'P[#.9E
End