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.
  1 件のコメント
he
he 2022 年 9 月 22 日
Could you please help me?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by