Plotting vectors in 3D space

A function to plot a vector in 3-Dimensional plot. The function needs the starting point and the end point of the vector.
8 Downloads
Updated 9 Mar 2025

View License

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 Linux
Tags Add Tags
Version Published Release Notes
1.0.1

Updates in the description.

1.0.0