1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| R = 100/255; G = 100/205; B = 100/205; RGB = [R G B];
hF = figure;
% set(gca,'FontSize',18,'Position',[0 0 1 1])
set(hF,'Color','w')
[X,Y,Z] = sphere(100);
hL = surf(X,Y,Z,'FaceAlpha',0.25,'FaceColor',RGB,'LineStyle','none',...
'FaceLighting','phong','AmbientStrength',0.5,...
'DiffuseStrength',0.7,'BackFaceLighting','reverselit');
axis([-1.1 1.1 -1.1 1.1 -1.1 1.1]); axis vis3d; grid off; hold on
light('Position',[1 1 1]); axis off
plot3(s1,s2,s3,'or','LineStyle','none','MarkerEdgeColor','r','MarkerFaceColor','r','MarkerSize',3)
Xlabel('S_{1}','FontSize',18,'Position',[1.4 -0.1 -2.5])
Ylabel('S_{2}','FontSize',18,'Position',[-0.40 1.8 -2.5])
Zlabel('S_{3}','FontSize',18,'Position',[-1.6 1.5 -0.25],'rot',0)
phi = -2*pi:0.01:2*pi;
plot3(sin(phi),cos(phi),0*phi,'Color','w')
plot3(0*phi,cos(phi),sin(phi),'Color','w')
plot3(sin(phi),0*phi,cos(phi),'Color','w')
plot3([-1 1],[0 0],[0 0],'Color','w')
plot3([0 0],[-1 1],[0 0],'Color','w')
plot3([0 0],[0 0],[-1 1],'Color','w') |
Partager