How to (cleverly) index points in a plot?

조회 수: 4 (최근 30일)
Mohit Kumar
Mohit Kumar 2020년 5월 14일
댓글: Mohit Kumar 2020년 5월 14일
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