function tiaoxing(bochang,N,m,L,handles) F|3 =Cl
global n 7>a-`"`O
global point u49v,,WGw
k=2*pi/bochang; W+&w'~M
a=m*1e+006; =c-,uW11[
deltax=2*a/point;%取单位长度 SYPG.O?I
xx=-a:deltax:a; 5s >UM@})
L=L*1e+006; ^b{w\HZ
nn=length(xx); Qg \OJmv
u=ones(1,nn); a|*{BlY
jj=1:nn; )>]~ Y
for n=1:N %进行迭代 ZR~ *Yofy
1Qi5t?{
for b=1:nn cI9} YSk
uu(b)=sqrt(i*exp(-i*k*L)/(bochang*L)).*... |G+6R-_
sum(exp(-i*k*((b-jj)*deltax).^2./(2*L)).*u)*deltax;% e%(,)WlTaU
?]`kc
end 1CkBfK
_`/:gkZS
ma=max(uu);%归一化 1]L 0r
uu=uu./ma; bIR AwktD
u=uu;
u;fD4CA
axes(handles.axes1); rKR2v(c
plot(xx,abs(u)) U{2[nF
axes(handles.axes2); 8\+Q*7~@i
plot(xx,angle(u)) ,qS-T'[v,(
set(handles.edit10,'string',num2str(n));%迭代次数显示到面板 Fxu'(xa
End