Plot directed

版本 1.0.0.0 (640 字节) 作者: Domenico Teodonio
Plot a line with a specified direction.
236.0 次下载
更新时间 2015/5/31

查看许可证

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);

引用格式

Domenico Teodonio (2024). Plot directed (https://www.mathworks.com/matlabcentral/fileexchange/51015-plot-directed), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Line Plots 的更多信息
致谢

参考作品: Plot With Direction

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

.

.