计算光波由光密入射到光疏介质时相位变化
f`J|>Vk
G/(*foT8SE
clear )E~_rDTl
ppFYc\&=
close all .[,6JU%
@'gl~J7
n1=1.45,n2=1; j{"[Ec
^ $wJi9D6
theta=0:0.1:90; 0[9I0YBJ
/{R3@,D[]
a=theta*pi/180; oZ-FF'
A$<>JVv
rp=(n2*cos(a)-n1*sqrt(1-(n1/n2*sin(a)).^2))./(n2*cos(a)+n1*sqrt(1-(n1/n2*sin(a)).^2)); lR}%)3_k
@G(xaU'u
rs=(n1*cos(a)-n2*sqrt(1-(n1/n2*sin(a)).^2))./(n1*cos(a)+n2*sqrt(1-(n1/n2*sin(a)).^2)); \k4pK &b
@'HT;Q!\Vd
tp=2*n1*cos(a)./(n2*cos(a)+n1*sqrt(1-(n1/n2*sin(a)).^2)); Q"'V9m7
i
VF=Z`
ts=2*n1*cos(a)./(n1*cos(a)+n2*sqrt(1-(n1/n2*sin(a)).^2)); HtUG#sc&`{
"&Mou
arp=angle(rp); G
*@@K
}9=2g`2Q
ars=angle(rs); Yw[{beo
^9'$Oa,*
atp=angle(tp); r w\D>}\
ngLJ@TP-
ats=angle(ts); 4Cd#sQ
|!xpYT:
figure(1) Rn;VP:H M
Vrg3{@$
subplot(1,2,1); 1 KB7yG-#6
\n;g2/VjO
plot(theta,arp,'-',theta,ars,'--','LineWidth',2) 'z-D%sCA
WvbEh|y
legend('arg(r_p)','arg(r_s)')
Wxs>osq
GmAj<