How can i plot a colormap (2d)

조회 수: 20 (최근 30일)
ionas
ionas 2014년 5월 30일
답변: Image Analyst 2014년 5월 30일
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일
Try griddedInterpolant() to make a solid array of z values at all x and y locations. Then use surf(), colormap(), and colorbar().

추가 답변 (1개)

Sara
Sara 2014년 5월 30일
You can use
pcolor

카테고리

Help CenterFile 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