How to set color in quiver 2D

조회 수: 2 (최근 30일)
Ale
Ale 2016년 11월 16일
댓글: he 2022년 9월 22일
Hi, I've trying to assigning color to the arrows according to the vector magnitude. I used set, but I guess to use a set, I need the specify which is the magnitude of the arrows, but I don't know how...
I tried used functions like quiverwcolorbar, but there's NaN in the data, so it doesn't work for some of them.

채택된 답변

KSSV
KSSV 2016년 11월 16일
  댓글 수: 2
Ale
Ale 2016년 11월 18일
Yes I have. I tried with quiverc2wcmap 'cause I have NaNs in the data, but its returns a message error : Subscript indices must either be real positive integers or logicals...
KSSV
KSSV 2016년 11월 18일
편집: KSSV 2016년 11월 18일
You remove NaN's and send only numbers then. Simple.
And I have checked with quiverc, it is working though there are NaN's. Have you tried the above link? It is quiverc not quiverc2wcmap.

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

추가 답변 (1개)

he
he 2022년 9월 22일
I have the same problem for quiver 2D.
  댓글 수: 1
he
he 2022년 9월 22일
Could you please help me?

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

카테고리

Help CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by