A binary tensor may also be referred to as a 3D matrix of zeros and non-zeros or a 3D logical array. binaryTensorVoxel will draw cubes where there are non-zero entries in a tensor and leave vacancies where there are zeros. A simple use case example is
t = round(rand(3,3,3)); % zeros and ones
binaryTensorVoxel(t);
The thumbnail image for this File Exchange entry was drawn by applying binaryTensorVoxel to a 3D cellular automaton.
引用格式
Paul Kassebaum (2026). binaryTensorVoxel (https://ww2.mathworks.cn/matlabcentral/fileexchange/43481-binarytensorvoxel), MATLAB Central File Exchange. 检索时间: .
