3D cuboid elements display
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
ac_bm_mat
am 29 Apr. 2022
Kommentiert: ac_bm_mat
am 29 Apr. 2022
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 29 Apr. 2022
I did not get around to gettting color working, but you can hardcode facecolor options into the patch() call.
6 Kommentare
Walter Roberson
am 29 Apr. 2022
Sorry, I am too busy the next few days to simplify that code for your case.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!