How do I efficiently color quiver3 arrows separately?

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

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)

Sign in to comment.

Answers (0)

Categories

Products

Release

R2018b

Asked:

on 14 Apr 2019

Commented:

on 14 Apr 2019

Community Treasure Hunt

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

Start Hunting!