How to set color in quiver 2D

1 次查看(过去 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.

类别

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