Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Ranges in colorbar, 3D shaded surf
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello, I would like to create a 3d shaded surface and I got X,Y,Z tables (X is 1*21 table, Y is 9*1 and Z is 9*21 table). I would alsoi like to define colors in colorbar in order Z values from 0 to 1803 to be red, from 1803 to 2755 to be yellow and from 2755 to 76387 to be green. All I get is this but the ranges are not correct: http://www.flickr.com/photos/87753025@N03/8031780155/ How can I do that? How can I proceed with coding? Thank you!
surf(X,Y,Z)
colorbar
colormap([1 0 0; 1 1 0; 0 1 0]
0 Commenti
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!