colouring dots in scatter3 according z-value
Mostra commenti meno recenti
plot3 gives colours according to height above the xy-plane. Is that possible with scatter3 too?
Risposta accettata
Più risposte (2)
Weia Reinboud
il 18 Set 2017
2 voti
1 Commento
José-Luis
il 18 Set 2017
You can specify the color as a linear function of z:
x = 1:10;
z = fliplr(x);
scatter3(x,x,z,2,z)
Categorie
Scopri di più su White in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!