File Exchange

image thumbnail


version (5.59 KB) by Kevin Moerman
Plotting of colored 3D arrows based on patch command


Updated 28 Apr 2015

View License

This function allows plotting of colored 3D arrows by generating patch
data (faces “F”, vertices “V” and color data “C”). The patch data which
allows plotting of 3D quiver arrows with specified (e.g. colormap driven)
color. To save memory n arrows are created using only n*6 faces and n*7
vertices. The vector "a" defines arrow length scaling where a(1) is the
smallest arrow length and a(2) the largest. The input c specified color data. Use the PATCH command to plot
the arrows:

Cite As

Kevin Moerman (2020). quiver3Dpatch (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)



Fixed description

Renewed as included in

Fixed arrow length scaling bug for equal length vector input. Added color input option and added comments and expanded example for color specification.

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux