Plotting vectors in 3D space
Version 1.0.1 (1.82 KB) by
Sanjay Chaturvedi
A function to plot a vector in 3-Dimensional plot. The function needs the starting point and the end point of the vector.
Plotting a 3D vector in 3D space.
Function: vec_plot(vector1,vector2,'color')
- vector1 is the starting point (generally origin) and vector2 is the end point of a vector.
- color is optional (use any colour), default is 'black'
Cite As
Sanjay Chaturvedi (2026). Plotting vectors in 3D space (https://uk.mathworks.com/matlabcentral/fileexchange/180336-plotting-vectors-in-3d-space), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2020b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
