How to use matlab to draw cubes?

10 visualizaciones (últimos 30 días)
changcheng qiu
changcheng qiu el 17 de Oct. de 2018
Respondida: fyp matlab el 16 de Mayo de 2021
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!

Respuesta aceptada

Matt J
Matt J el 17 de Oct. de 2018
Editada: Matt J el 17 de Oct. de 2018
Use the patch command to draw the faces of the cubes.

Más respuestas (2)

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

fyp matlab
fyp matlab el 16 de Mayo de 2021
plotcube command isn't working

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by