![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175053/image.png)
Add arrows to an image
29 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi there all. I have a question here.
How could I add an arrows on an image? For example, I want to point to somewhere of the image, and put some text to describe it.
Thanks in advance of your help.
0 commentaires
Réponses (1)
Stephen23
le 17 Sep 2016
Modifié(e) : Stephen23
le 17 Sep 2016
The easiest way is to use an annotation, which places text and an arrow on a plot. Here an example from the documentation:
figure
plot(1:10)
x = [0.3 0.5];
y = [0.6 0.5];
annotation('textarrow',x,y,'String','y = x ')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175053/image.png)
If you want to use arrows by themselves, you can download some of the FEX submissions that draw arrows:
etc:
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!