Imagesc equivalent for 3D array

조회 수: 15 (최근 30일)
Silvia Butti
Silvia Butti 2018년 7월 25일
답변: Walter Roberson 2018년 7월 25일
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.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 7월 25일
Use A both as the data to be drawn, and as the alpha data.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by