mArrow3.m - easy-to-use 3D arrow

版本 1.0.0.0 (2.5 KB) 作者: Georg Stillfried
Draw a 3D arrow. Easily specify size, color and even transparency.
9.8K 次下载
更新时间 2009/9/21

查看许可证

This function draws a 3D arrow using a cylinder and cone patch. This allows the use of all patch properties including transparency. It can be used with default parameters (example 1) or user-defined parameters (example 2).

example 1:
> mArrow3([0 0 0],[1 1 1]);
% draws a black arrow from point [0 0 0] to point [1 1 1]

example 2:
> h = mArrow3([0 0 0],[1 1 1], 'facealpha', 0.5, 'color', 'red', 'stemWidth', 0.02);
% draws a semitransparent red arrow with a stem width of 0.02 units from point [0 0 0] to point [1 1 1]; h is the handle to the patch object

引用格式

Georg Stillfried (2024). mArrow3.m - easy-to-use 3D arrow (https://www.mathworks.com/matlabcentral/fileexchange/25372-marrow3-m-easy-to-use-3d-arrow), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP3
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

参考作品: Arrow3

启发作品: Spongebob Squarepants goes 3-D

Community Treasure Hunt

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

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