How to (cleverly) index points in a plot?

11 次查看(过去 30 天)
I have a for loop which plots a point each iteration.
In total there are about 4000+ points to be plotted. From the figure, I want to select a point and see which iteration gave me that point.
The only way I thought of doing this is by printing the index next to the points on the plot which creates a very messy picture.
Thanks,
Mohit.

采纳的回答

Walter Roberson
Walter Roberson 2020-5-14
  1 个评论
Mohit Kumar
Mohit Kumar 2020-5-14
Awesome, thanks!
Can the same thing also be done with plot? (As I would prefer a dash-dot plot)
If not, I'll obviously make two plots - one with scatter and one with plot.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by