필터 지우기
필터 지우기

Adding points onto a 3D figure in a GUI

조회 수: 3 (최근 30일)
Richard
Richard 2013년 4월 22일
I have a 3D plot in a GUI showing position in 3 dimensions and want to display the points at which the velocity of the movement is zero. The line has already been plotted and the values for the targets have already been found but how do I add single points on to this figure?

답변 (3개)

Matt Kindig
Matt Kindig 2013년 4월 22일
편집: Matt Kindig 2013년 4월 22일
Turn 'hold on', and then call plot3() to plot the points.

Richard
Richard 2013년 4월 22일
This didn't work, it was the first thing I tried.
  댓글 수: 2
Matt Kindig
Matt Kindig 2013년 4월 22일
What "didn't work" about it? Can you post your code?
Walter Roberson
Walter Roberson 2013년 4월 22일
Please post your response as a Comment instead of an Answer. You can click on "Comment on this Answer" to do that.

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


Walter Roberson
Walter Roberson 2013년 4월 22일
You can use scatter3(), or you can use plot3() with a marker specifier and no line specifier
plot3(X(:), Y(:), Z(:), 'o')
  댓글 수: 1
Jawahir
Jawahir 2013년 6월 26일
Hi Walter,
I'm facing quite similar problems. I've tried the plot3 function, but when the marker are displayed, the current 3D plot will be gone. Note that I've already run hold on.

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

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by