How can i plot a colormap (2d)

2 visualizzazioni (ultimi 30 giorni)
ionas
ionas il 30 Mag 2014
Risposto: Image Analyst il 30 Mag 2014
I have a matrix where 1st column is x, second y and third z
I'm trying to plot a surface with z coordinate to be the color. can anyone help me?
thank you in advance George

Risposta accettata

Image Analyst
Image Analyst il 30 Mag 2014
Try griddedInterpolant() to make a solid array of z values at all x and y locations. Then use surf(), colormap(), and colorbar().

Più risposte (1)

Sara
Sara il 30 Mag 2014
You can use
pcolor

Categorie

Scopri di più su Color and Styling in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by