How to visualize al the values inside the array and make split them into two sections?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Mariana
el 24 de Feb. de 2020
Respondida: darova
el 24 de Feb. de 2020
I have and an array of 191x116x 5. I would like to visualize them in a way that all the value higher than 2 are with a certain color and the other ones in another. At the end I will have two sections.
0 comentarios
Respuesta aceptada
darova
el 24 de Feb. de 2020
Just use logical indexing
ix = val > 2;
scatter3(x(ix),y(ix),z(ix),10,'r')
hold on
scatter3(x(~ix),y(~ix),z(~ix),10,'r')
hold off
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Grid Lines, Tick Values, and Labels en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!