colouring dots in scatter3 according z-value
Mostrar comentarios más antiguos
plot3 gives colours according to height above the xy-plane. Is that possible with scatter3 too?
Respuesta aceptada
Más respuestas (2)
Weia Reinboud
el 18 de Sept. de 2017
2 votos
1 comentario
José-Luis
el 18 de Sept. de 2017
You can specify the color as a linear function of z:
x = 1:10;
z = fliplr(x);
scatter3(x,x,z,2,z)
Weia Reinboud
el 18 de Sept. de 2017
0 votos
1 comentario
Star Strider
el 18 de Sept. de 2017
As always, my pleasure!
Categorías
Más información sobre White en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!