3D cuboid elements display
2 次查看(过去 30 天)
显示 更早的评论
elem(8,8,8) = zeros;
for i=1:8
elem(i,i,i)=1
end
I want to plot 3D voxels or mesh or elements with different color for 1 and different color for 0. How to do that?
0 个评论
采纳的回答
Walter Roberson
2022-4-29
I did not get around to gettting color working, but you can hardcode facecolor options into the patch() call.
6 个评论
Walter Roberson
2022-4-29
Sorry, I am too busy the next few days to simplify that code for your case.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!