arrowPlot(X, Y, varargin)

Plot data with arrows on curve.

You are now following this Submission

There are too many people want to plot data with arrows and some MATLAB user share some useful functions to do this. But there are still some problems. Such as if the ratio of X-axis and Y-axis is not equal, the arrows will be out of shape or direct to the wrong direction. My function solve these problems and is simple to use.
Just use arrowPlot(X, Y), it can plot curve just like plot(X, Y) and add 2 arrows to the curve with beautiful arrow shape, on suitable positions, with suitable size, directing to suitable directions. If you are not satisfied with some of the properties of arrows, you can use some options to change the properties by 'varargin' of arrowPlot(X, Y, varargin). For details of using, please see the help text of this function.

Cite As

TimeCoder (2026). arrowPlot(X, Y, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/62587-arrowplot-x-y-varargin), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Add an overview picture of arrowPlot result.