入射光的电矢量总是可以分解为垂直于入射面的s波与平行于入射面的p波,求得s波与p波的反射系数及透射系数后,可以用matlab拟合出系数曲线。
%figure 1.23 calculation of rs rp ts tp
u_1=0:0.5:90;
u_2=asind(sind(u_1)/1.5);
r_s=sind(u_2-u_1)./sind(u_2+u_1);
t_s=2*sind(u_2).*cosd(u_1)./sind(u_1+u_2);
r_p=tand(u_1-u_2)./tand(u_1+u_2);
t_p=2*sind(u_2).*cosd(u_1)./(sind(u_1+u_2).*cosd(u_1-u_2))
plot(u_1,r_s)
hold on
plot(u_1,t_s)
hold on
plot(u_1,r_p)
hold on
plot(u_1,t_p)
title('s波与p波的反射系数与透射系数曲线')
grid
xlabel('角度')
ylabel('比值')
text(28,-0.23474,'rs')
text(31,0.15575,'rp')
text(57,0.60912,'ts')
text(73.5,0.47532,'tp')
%legend('rs','rp','ts','tp')