Effacer les filtres
Effacer les filtres

Imagesc equivalent for 3D array

7 vues (au cours des 30 derniers jours)
Silvia Butti
Silvia Butti le 25 Juil 2018
Hi, I have a simple 0-1 3D array (e.g. A(:,:,1) = [0,1;0,1]; A(:,:,2)=[1,1;1,0]) and I would like a 3D plot of such an array - essentially a 3D cube consisting of 8 "subcubes", with dark subcubes for 1 and transparent subsubes for 0.
Can anyone help me plot this? Thanks.

Réponses (1)

Walter Roberson
Walter Roberson le 25 Juil 2018
Use A both as the data to be drawn, and as the alpha data.

Catégories

En savoir plus sur Line Plots 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