How to set color in quiver 2D

1 Ansicht (letzte 30 Tage)
Ale
Ale am 16 Nov. 2016
Kommentiert: he am 22 Sep. 2022
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.

Akzeptierte Antwort

KSSV
KSSV am 16 Nov. 2016
  2 Kommentare
Ale
Ale am 18 Nov. 2016
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 am 18 Nov. 2016
Bearbeitet: KSSV am 18 Nov. 2016
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

he
he am 22 Sep. 2022
I have the same problem for quiver 2D.
  1 Kommentar
he
he am 22 Sep. 2022
Could you please help me?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Vector Fields finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by