File Exchange

image thumbnail


version (2.77 KB) by Francesco
This function allow the quick creation of vector filled plots.


Updated 30 Oct 2009

View Version History

View License

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 .

Cite As

Francesco (2020). quiverc (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Claudio D'Eramo

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.

Mukilan D

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?

Mukilan D

Saving issues!

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.

Thank You,
Mukilan (Theni)

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: quivermc

Community Treasure Hunt

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

Start Hunting!