function tiaoxing(bochang,N,m,L,handles) Vo1,{"k
global n jhRg47A
global point 8&[Lr o9
k=2*pi/bochang; 9Yu63s ia
a=m*1e+006; y$i^C: N
deltax=2*a/point;%取单位长度 KMs[/|HX\
xx=-a:deltax:a; 6t zUp/O
L=L*1e+006; 18`YY\u(
nn=length(xx); n8h1SlK08
u=ones(1,nn); `.oWmBey\
jj=1:nn; U%.%:'eV=
for n=1:N %进行迭代 'YQVf]4P
PhUG}94
for b=1:nn @*Y"[\ "$
uu(b)=sqrt(i*exp(-i*k*L)/(bochang*L)).*... 'gBGZ?^N!U
sum(exp(-i*k*((b-jj)*deltax).^2./(2*L)).*u)*deltax;% g=ehAg
m-xnbTcQ
end RSv?imi=
V(gmC%6%l*
ma=max(uu);%归一化 ,\){-H/n
uu=uu./ma; t(~V:+W 9
u=uu; T[?wbYfW
axes(handles.axes1); 2wCSjAWWh(
plot(xx,abs(u)) 2SjH7
'
axes(handles.axes2); )GT*HJR(vc
plot(xx,angle(u)) 3VI[*b
set(handles.edit10,'string',num2str(n));%迭代次数显示到面板 `EBI$;!
End