MATLAB Answers

0

The same length vectors with color-coded amplitude

Asked by Farzaneh Karimian on 5 Aug 2019 at 13:45
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?

  0 Comments

Sign in to comment.

0 Answers