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.
Zitieren als
TimeCoder (2024). arrowPlot(X, Y, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/62587-arrowplot-x-y-varargin), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Graphics > 2-D and 3-D Plots > Vector Fields >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 | Add an overview picture of arrowPlot result. |