Plot With Direction 3D

Plot column vectors with arrows pointing to the next elements in 3D.
1.1K Downloads
Updated 7 Nov 2010

View License

function [h1, h2] = plot_dir3 (vX, vY, vZ)
Plotting x-y-z variables with direction indicating vector to the next element.
Example
vX = linspace(0,2*pi, 10)';
vY = sin (vX);
vZ = cos (vX);
plot_dir3(vX, vY, vZ);

Cite As

Kangwon Lee (2024). Plot With Direction 3D (https://www.mathworks.com/matlabcentral/fileexchange/29307-plot-with-direction-3d), MATLAB Central File Exchange. Retrieved .

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

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