How to let vector direction define quiver plot colors
8 views (last 30 days)
I'm trying to plot some vector data in matlab using the quiver function (full disclosure, I'm actually using m_quiver from the m_maps toolbox).
What I want is to set each individual arrow color to be relative to its direction, e.g. north being red, south being blue. Is there a way to do this? I'm picturing something like the CData option with scatter plots!