This function is inspired from vfield; I tried to overcome some problems that I found using the other one and to improve the visualization of the vectors of the field. Furthermore the visualization is CFD style.
The visualization is very quick, also with large vector fields.
The function reads matrix x,y positions and u,v vectors components. All input must have same dimensions.
The dimension of plotted vector is proportional to vector length, and the color is same.
You can specify two options 'scale' and the value of che scale factor enlarging vector visualization 'lungh' and you have all vector of normalized length .
Francesco (2020). quiverc (https://www.mathworks.com/matlabcentral/fileexchange/25659-quiverc), MATLAB Central File Exchange. Retrieved .
If you are normalizing the vector field the zero velocity vector will get length one too. To solve this problem, after line 58, you have to put to zero the entries of the following variables
which correspond to the null entries of the ''speed'' matrix defined at line 36.
1. Very good work! Is there any way to convert the zero velocity vectors to a point so that the output quality would be very good.
2. Is there any way to incorporate other colormaps with the color bar?
The resultant output quality is very attractive (other than zero velocity vectors). But when I saved as Matlab figure file the values in the colorbar disappears and when saved as a Tiff or Png file or in any format everything disappears and it looks completely black! Is there any way to over come this problem.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!