function tiaoxing(bochang,N,m,L,handles) Y\7>>?
global n XcOfQs
global point "}_b,5lkGK
k=2*pi/bochang; W|IMnK-
a=m*1e+006; 1Sk=;Bic
deltax=2*a/point;%取单位长度 T#;W5<"
xx=-a:deltax:a; `Yk~2t"V
L=L*1e+006; ].W)eMC*c(
nn=length(xx); ` ZO#n
u=ones(1,nn); Kjw4,z%\94
jj=1:nn; !PQ%h/ix
for n=1:N %进行迭代 N=1zhI:VaQ
hf6=`M}>i
for b=1:nn cL31g_u
uu(b)=sqrt(i*exp(-i*k*L)/(bochang*L)).*... 9`83cL
sum(exp(-i*k*((b-jj)*deltax).^2./(2*L)).*u)*deltax;% $XBn:0U
XILB>o.^3
end ~vqVASUc,
pkW }\r
ma=max(uu);%归一化 @J`o
pR
uu=uu./ma; |Z]KF>S]
u=uu; )e#KL$B)v
axes(handles.axes1); -6 WjYJx
plot(xx,abs(u)) Q5[x2 s_ d
axes(handles.axes2); M^q< qS>d
plot(xx,angle(u)) "4Joou"U
set(handles.edit10,'string',num2str(n));%迭代次数显示到面板 #[|~m;K(w
End