plot 2/3D vector(s)

Plots 2D or 3D vectors at points, both provided as matrices of column vectors.
593 Downloads
Updated 23 Feb 2012

View License

QUIVERMD(AX, X, V, VARARGIN) plots the column vectors in matrix V at the points with coordinates the column vectors in matrix X, within axes object AX using plot formatting options in VARARGIN.

Example
x = linspace(0, 10, 20);
y = linspace(0, 10, 20);
[X, Y] = meshgrid(x, y);

x = [X(:), Y(:) ].';
v = [sin(x(1, :) ); cos(x(2, :) ) ];

quivermd(gca, x, v)

For usage information please type "help quivermd".

Cite As

Ioannis Filippidis (2024). plot 2/3D vector(s) (https://www.mathworks.com/matlabcentral/fileexchange/35224-plot-2-3d-vector-s), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Vector Fields in Help Center and MATLAB Answers
Acknowledgements

Inspired by: plot 2/3D point(s)

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0