How do I efficiently color quiver3 arrows separately?
Show older comments
I need to color quiver3 arrows by direction for a large dataset. This is simple to do by looping through the vectors and quivering & coloring them individually. However, this runs several orders of magnitude slower than quiver3d with a single color. From scouring the net, it doesn't seem that there is any other solution that works for a large dataset anywhere near as efficiently as quiver3. Would it be possible for the folks at matlab to allow a color vector input to 'Color' so that each arrow can be colored according to the corresponding vector element?
1 Comment
Walter Roberson
on 14 Apr 2019
You could potentially speed up by using one quiver3() call for each different color, having selected only that data (possibly by setting a lot of entries to nan)
Answers (0)
Categories
Find more on Vector Fields in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!