Add arrows to a graph
Afficher commentaires plus anciens
Hi,
Can anyone please tell how can I add arrows to a graph like the attached image
Réponses (2)
Mischa Kim
le 7 Avr 2014
Modifié(e) : Mischa Kim
le 7 Avr 2014
0 votes
1 commentaire
JMS
le 7 Avr 2014
Joseph Cheng
le 7 Avr 2014
0 votes
so to get the image without the arrows i am going to assume you have the [x,y,u,v] that will be used in quiver. as you have x,y,u, and v coordinates you can calculate the magnitude of the vector for each x,y position using u and v. then use imagesc(x,y,m) where m is the magnitude of each vector.
1 commentaire
Joseph Cheng
le 7 Avr 2014
The link above should contain all the information you need about annotating graphs in matlab.
Catégories
En savoir plus sur Graphics Object Properties dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!