답변 (2개)

Mischa Kim
Mischa Kim 2014년 4월 7일
편집: Mischa Kim 2014년 4월 7일

0 개 추천

JMS, if you are talking about the vector field, use quiver. For labeling the graph you add lines (manually or in the code) and edit the properties to add arrows.

댓글 수: 1

JMS
JMS 2014년 4월 7일
Hi Mischa Kim, Thanks for your reply. Firstly, I should asked how to get the first image without Arrows and then for the second one how? Do you know how I can color the vector field like the first image"Without arrows"? Then we can talk about the second one.
Many thanks!

댓글을 달려면 로그인하십시오.

Joseph Cheng
Joseph Cheng 2014년 4월 7일

0 개 추천

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
Joseph Cheng 2014년 4월 7일
The link above should contain all the information you need about annotating graphs in matlab.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

JMS
2014년 4월 7일

댓글:

2014년 4월 7일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by