How to set color in quiver 2D

2 visualizaciones (últimos 30 días)
Ale
Ale el 16 de Nov. de 2016
Comentada: he el 22 de Sept. de 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.

Respuesta aceptada

KSSV
KSSV el 16 de Nov. de 2016
  2 comentarios
Ale
Ale el 18 de Nov. de 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 el 18 de Nov. de 2016
Editada: KSSV el 18 de Nov. de 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.

Iniciar sesión para comentar.

Más respuestas (1)

he
he el 22 de Sept. de 2022
I have the same problem for quiver 2D.
  1 comentario
he
he el 22 de Sept. de 2022
Could you please help me?

Iniciar sesión para comentar.

Categorías

Más información sobre Vector Fields en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by