How to let vector direction define quiver plot colors

I'm trying to plot some vector data in matlab using the quiver function (full disclosure, I'm actually using m_quiver from the m_maps toolbox).
What I want is to set each individual arrow color to be relative to its direction, e.g. north being red, south being blue. Is there a way to do this? I'm picturing something like the CData option with scatter plots!

댓글 수: 2

Hi Aidan, Did you find something to do this? I am interested in the same sort of plotting.
I gave up... At the moment I'm just using quiver_mc (which is an awesome function) and letting the magnitude set the color. -Sorry!

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

 채택된 답변

KSSV
KSSV 2018년 7월 10일

0 개 추천

댓글 수: 2

Great! Although this seems to define colour by magnitude and not direction. My issue is the arrow directions are slightly unclear because of the density.
Ali
Ali 2023년 10월 23일
Hi Aidan did you find any solution for that? I will be thankful if you can help me with that

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

추가 답변 (0개)

카테고리

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

제품

릴리스

R2018a

질문:

2018년 7월 10일

댓글:

Ali
2023년 10월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by