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

 Akzeptierte Antwort

Image Analyst
Image Analyst am 30 Mai 2014

0 Stimmen

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

Weitere Antworten (1)

Kategorien

Mehr zu Color and Styling finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by