Borrar filtros
Borrar filtros

3D cuboid elements display

1 visualización (últimos 30 días)
ac_bm_mat
ac_bm_mat el 29 de Abr. de 2022
Comentada: ac_bm_mat el 29 de Abr. de 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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Abr. de 2022
I did not get around to gettting color working, but you can hardcode facecolor options into the patch() call.
  6 comentarios
Walter Roberson
Walter Roberson el 29 de Abr. de 2022
Sorry, I am too busy the next few days to simplify that code for your case.
ac_bm_mat
ac_bm_mat el 29 de Abr. de 2022
It's okay. Whenever you are free, please try to simplify it. Thank you so much.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by