colors in surf according to values
Afficher commentaires plus anciens
When I ejecute:
Z = [5 10 10 5
5 10 10 5];
surf(Z)
I get a figure which has three faces, and It colors first face with blue and second and third with yellow. I would like to modify this painting with yellow in last face. My objective is to get figure has colors according to values in Z, that is,
- 5 to 10 -> blue,
- 10 to 10 -> yellow, and
- 10 to 5 -> blue.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur App Building 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!