How to plot 3-d matrix in the form of cube?

16 visualizaciones (últimos 30 días)
TaeGyung Lee
TaeGyung Lee el 15 de Mzo. de 2017
Respondida: alejandro perez el 2 de Feb. de 2020
I have a 26*26*26 matrix with numbers between 0 to 1. How do I plot the matrix in the form of colored cube with 1 as red and 0 as transparent??

Respuesta aceptada

KSSV
KSSV el 15 de Mzo. de 2017
See this code. It will be helpful to plot a cube. https://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube

Más respuestas (1)

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

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by