利用MATLAB,仿真偏振控制器(利用邦加球算法),验证固定偏振态到任意偏振态的转换,其结果布满整个邦加球-MATLAB simulation using polarimetric controller (with), fixed ball algorithm to any polarization transformation of polarization, and the result is full of whole nations plus the ball
clear
clc %QHQ
subplot(1,2,1)
[x,y,z]=sphere;
mesh(x,y,z);
xlabel('S1')
ylabel('S2')
zlabel('S3')
box on
colormap(bone);
hold on
%入射光
%I=[1;0;0;1]; %右旋圆偏振光(可见)
%I=[1;0;0;-1]; %左旋圆偏振光
%I=[1;1;0;0]; %水平线偏振光
%I=[1;-1;0;0]; %垂直线偏振光(可见)
%I=[1;0;1;0]; %45度线偏振光
I=[1;0;-1;0]; %-45度线偏振光(可见)
%I=[1;-0.2;-0.5;0.8994]; %某一椭圆偏振光
plot3(I(2),I(3),I(4),'*') %画出入射光的偏振态位置
%各波片的方位角
theta1=rand(1,5000)*pi-pi/2;
theta2=rand(1,5000)*pi-pi/2;
theta3=rand(1,5000)*pi-pi/2;
subplot(1,2,2)
[x,y,z]=sphere;
mesh(x,y,z);
xlabel('S1')
ylabel('S2')
zlabel('S3')