The same length vectors with color-coded amplitude

2 views (last 30 days)
I have two components of a vector as two matrix and create a vector map for them by quivec function in Matlab. As vectors amplitude (ampl=sqrt(x^2+y^2)) was really small in some parts, I normalized vectors (every vector is normalized to its length) and now have new vector field. What I wanted to do is to use a color code to show the vectors amplitude. I checked another function quivercquiverc(varargin) which uses colors to show different amplitude and so normalization is not possible. My question is that how I can display my normalized vectors with color code based on their length?

Answers (0)

Community Treasure Hunt

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

Start Hunting!