How to set color in quiver 2D

1 vue (au cours des 30 derniers jours)
Ale
Ale le 16 Nov 2016
Commenté : he le 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.

Réponse acceptée

KSSV
KSSV le 16 Nov 2016
  2 commentaires
Ale
Ale le 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 le 18 Nov 2016
Modifié(e) : KSSV le 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.

Connectez-vous pour commenter.

Plus de réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Vector Fields dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by