Finding annotation location dynamically?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
820408
am 1 Apr. 2016
Kommentiert: 820408
am 1 Apr. 2016
I am creating plots similar to one below

A numeric is written next to each curve that shows an iteration. In my plot,I am adding these numbers using annotation(.) but I have to adjust their position manually? Is it possible that This can be done dynamically.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 1 Apr. 2016
For each curve, get x and y
labelX = x(end) + 0.1;
labelY = y(end);
text(labelX, labelY, string);
Make up string with sprintf() and put whatever you want in it.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!