Plot directed

Plot a line with a specified direction.
241 téléchargements
Mise à jour 31 mai 2015

Afficher la licence

Thought for thermodynamic cycles, the function is used as the more common 2-D plot, but with one single arrow in the middle of the curve, that specifies the direction.
The length of the arrow can be chosen by user, as the opening angle and the LineSpecs.
% This function plots a 2-D line with the direction of the path.
% plot_d(X,Y,LineSpec,angle,length_line)
% - X and Y must be of the same length
% - angle determines the degrees of angulation of the arrow
% - length_line determines the lenght of the arrow (inverse direction if negative)
% Example:
% X=linspace(0,2*pi);
% Y=sin(X);
% plot_d(X,Y,'-b',45,0.3);

Citation pour cette source

Domenico Teodonio (2026). Plot directed (https://fr.mathworks.com/matlabcentral/fileexchange/51015-plot-directed), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2015a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Line Plots dans Help Center et MATLAB Answers
Remerciements

Inspiré par : Plot With Direction

Version Publié le Notes de version
1.0.0.0

.

.