colouring dots in scatter3 according z-value
Afficher commentaires plus anciens
plot3 gives colours according to height above the xy-plane. Is that possible with scatter3 too?
Réponse acceptée
Plus de réponses (2)
Weia Reinboud
le 18 Sep 2017
2 votes
1 commentaire
José-Luis
le 18 Sep 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
le 18 Sep 2017
0 votes
1 commentaire
Star Strider
le 18 Sep 2017
As always, my pleasure!
Catégories
En savoir plus sur White dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!