How to use matlab to draw cubes?

13 vues (au cours des 30 derniers jours)
changcheng qiu
changcheng qiu le 17 Oct 2018
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!

Réponse acceptée

Matt J
Matt J le 17 Oct 2018
Modifié(e) : Matt J le 17 Oct 2018
Use the patch command to draw the faces of the cubes.

Plus de réponses (2)

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

fyp matlab
fyp matlab le 16 Mai 2021
plotcube command isn't working

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by