3D Arrow with many color/parameter options
Sin licencia
This code allows you to create simple, yet powerful three dimensional arrow. As it is derived from the surf command, it may be memory intensive, but well worth the cost for crisp visualization of data using phong shading and MATLAB's lighting options.
Example:
arrow3D([0,0,0], [0,0,1],'red',0.82);
%% Creates a single arrow starting at the origin with magnitude=1 along the z-axis, in red, with an arrowhead 18% of the length and the stem 82% of the length.
This has a 'published' file, so use:
playshow demoArrow3D
to view many of the details or simply view directly the html file attached.
Citar como
Shawn Arseneau (2025). 3D Arrow with many color/parameter options (https://www.mathworks.com/matlabcentral/fileexchange/12274-3d-arrow-with-many-color-parameter-options), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Graphics > Labels and Styling > Labels and Annotations >
- MATLAB > Graphics > Labels and Styling > Interactions, Camera Views, and Lighting > Lighting, Transparency, and Shading >
Etiquetas
Agradecimientos
Inspiración para: Plot a plane or line in 3D, The code for solving Wahba's problem
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
arrow3D_pub/
arrow3D_pub/html/
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 | A few stylistic fixes have been completed to allow for a tighter input parameter format as well as to provide a more extensive help preamble. Thanks go to John D'Errico for the insightful comments and critique. |