Add arrows to a graph
2 次查看(过去 30 天)
显示 更早的评论
Hi,
Can anyone please tell how can I add arrows to a graph like the attached image
0 个评论
回答(2 个)
Joseph Cheng
2014-4-7
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 个评论
Joseph Cheng
2014-4-7
The link above should contain all the information you need about annotating graphs in matlab.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!