how can I plot some of 3D points (x,y,z) on a surface of a sphere
조회 수: 5 (최근 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!