Quiverc
This is a modified version of the function quiver [from C.M. Thompson] to plot velocity vectors as arrows with components (u,v) at the points (x,y) with the color corresponding to the magnitude of the vector and using the current colormap.
Tip: for best results, add set(gcf, 'InvertHardCopy', 'off') after the function to keep the black background on the hardcopy. See attached examples.
Cite As
Bertrand Dano (2024). Quiverc (https://www.mathworks.com/matlabcentral/fileexchange/3225-quiverc), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Vector Fields >
Tags
Acknowledgements
Inspired: Quiver - magnitude-dependent color in 2D and 3D, quiverc2, quiverc2wcmap, quiverwcolorbar, Navier-Stokes solver, quivermc
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.