I need to plot 2 3d points: x1, y1, z1 and x2, y2, z2 on the same axis. When using plot3 I only get the second marker while using plot3 for each point. When using one command for both points I get only one marker.

 채택된 답변

Star Strider
Star Strider 2026년 4월 16일 1:45

0 개 추천

It would be nice to know what the point values are, and if you are restricting the axes in some way by using xlim, ylim, zlim or axis, such that one marker is invisible (outside the axis llimits).
My inescapable conclusion otherwise is that the points are either the same, or so close that the markers are indistinguishable. See if plotting different shape markers for each point (for example 's' and 'p') or plotting them as different sizes (using MarkerSize) or preferably both, makes any difference.

댓글 수: 2

William Blanch
William Blanch 2026년 4월 19일 6:11
이동: Torsten 2026년 4월 19일 10:56
Sorry for not getting back to you sooner. I checked the point values and found that I was gettiing the same values for the 2 solutions by using MarkerSize (like you said) so I was plotting one point over the other. DUH!
Thank You for your help
Star Strider
Star Strider 2026년 4월 19일 17:57
As always, my pleasure!
I originally attempted to respond about six hours ago, however Answers wouldn't let me.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Axis Labels에 대해 자세히 알아보기

제품

릴리스

R2025b

태그

질문:

2026년 4월 16일 0:32

댓글:

2026년 4월 19일 17:57

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by