How can i plot a colormap (2d)

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

 采纳的回答

Image Analyst
Image Analyst 2014-5-30

0 个投票

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

类别

在 帮助中心 和 File Exchange 中查找有关 Color and Styling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by