How can I use different colors using the quiver function in matlab. Lets say if the motion vector is zero represent that by a red dot. If the motion vector is between 0 and 5 represent that by a blue color. If it is more than 5, represent that by a green color. what I am using now is this function: quiver(MVx(end:-1:1,:), MVy(end:-1:1,:)) This function gives me the same color for all the motion vectors. Help please Thank you, Yazan

답변 (1개)

Sean de Wolski
Sean de Wolski 2014년 4월 10일

0 개 추천

댓글 수: 1

Yazan Awwad
Yazan Awwad 2014년 4월 10일
oh thank you, Can u give me an example how to use it using the information in my question?

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

카테고리

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

질문:

2014년 4월 10일

댓글:

2014년 4월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by