mArrow3.m - easy-to-use 3D arrow
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
Cita come
Georg Stillfried (2025). 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. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations >
- MATLAB > Graphics > Formatting and Annotation > 3-D Scene Control > Lighting, Transparency, and Shading >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |