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!