How do I label individual data points on an imagesc plot?
Ältere Kommentare anzeigen
I just want to label specific points in the plot with their coordinates. Does anybody know how I could go about doing this?
Thanks
Antworten (1)
Image Analyst
am 16 Mär. 2013
0 Stimmen
Would you consider using the text() function?
2 Kommentare
Kai Moncino
am 16 Mär. 2013
Image Analyst
am 16 Mär. 2013
Well obviously you have to know the coordinates of what you want to label. Then you create your text label with sprintf() and then put it over the image with text(). For example:
textLabel = sprintf('(%.2f, %.2f)', column, row);
text(row, column, textLabel);
Kategorien
Mehr zu Axis Labels finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!