how can I plot some of 3D points (x,y,z) on a surface of a sphere
3 次查看(过去 30 天)
显示 更早的评论
how can i plot these 3d points (x,y,z) ?
( 1,0,0)
(-1, 0,0)
( 0,0,1)
(0 ,0,-1)
(0.707, 0.707,0)
(0.707, -0.707, 0)
(-0.707, -0.707, 0)
(-0.707, 0.707, 0)
(0.707, 0, 0.707)
(0.707, 0 , -0.707)
( -0.707, 0, 0.707)
( -0.707, 0 , -0.707)
(0 , 0.707, 0.707)
( 0 , 0.707, -0.707)
(0, -0.707, 0.707)
(0 -0.707, -0.707)
0 个评论
采纳的回答
Walter Roberson
2022-7-13
xyz = [
1,0,0
-1, 0,0
0,0,1
0 ,0,-1
0.707, 0.707,0
0.707, -0.707, 0
-0.707, -0.707, 0
-0.707, 0.707, 0
0.707, 0, 0.707
0.707, 0 , -0.707
-0.707, 0, 0.707
-0.707, 0 , -0.707
0 , 0.707, 0.707
0 , 0.707, -0.707
0, -0.707, 0.707
0 -0.707, -0.707];
sphere
axis equal
hold on
scatter3(xyz(:,1), xyz(:,2), xyz(:,3), 'r*')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
