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

3d plotscubeplot

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??

Best Answer

See this code. It will be helpful to plot a cube. https://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube
Related Question