File Exchange

image thumbnail

3D Stem for Simulink Block

version (34 KB) by Larasmoyo Nugroho
Multitrack 3D Simulink Stem


Updated 12 Sep 2017

View Version History

View License

This block is a simulink adaptation of STEM3 plot function.
The standard STEM3 function allows to plot in Matlab environment. This block allows to plot the motion of SEVERAL vehicles in the XYZ space. Of course setting the camera viewing angle can be altered from parameter [45 45] to any [degrees_of_elevation height] number. Color and marker of each line are also changeable.
This block is very useful when you have to compare the motion of a point versus a reference trajectory.
Use inputs that have the format of x, y and z with the same size. The file is saved for R2011a.

Cite As

Larasmoyo Nugroho (2021). 3D Stem for Simulink Block (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Jhon Muñoz

Hi Larasmoyo, is it possible to plot with using surf command?, it is because i need to plot a 3D real time image with color. Thank you so much

Larasmoyo Nugroho

hi Yu Huan, i updated as you suggested. To use plot3, just uncomment the stem3-related three lines.

Yu Huan

Hi, thank you for your block, instead of plotting with stem, how could I just do the function of plot3 with this simulink model? I tried to comment but it doesn't work. Hope I could use some advice from you. Thank you very much

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired by: 3DScope

Community Treasure Hunt

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

Start Hunting!