How to use matlab to draw cubes?

12 次查看(过去 30 天)
I have some 3D coordinate datas,like this:[(1,1,1);(1,2,3)...],Now I want to use matlab to display these data in the form of cubes as shown below.The data such as (1,1,1) are the centre of the cube.Can you give me some advice? thanks!

采纳的回答

Matt J
Matt J 2018-10-17
编辑:Matt J 2018-10-17
Use the patch command to draw the faces of the cubes.

更多回答(2 个)

alejandro perez
alejandro perez 2020-2-2
In the description of this video is the code of a cube which rotates, moves and grows up.

fyp matlab
fyp matlab 2021-5-16
plotcube command isn't working

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by