フィルターのクリア

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 Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by