Color Surface Plot for specific areas

조회 수: 6 (최근 30일)
Cb
Cb 2021년 3월 4일
댓글: darova 2021년 3월 4일
Is it possible to color a surface plot using my own thresshold values? So that I can say, the color needs to change when the plot hits a certain value?

답변 (1개)

darova
darova 2021년 3월 4일
Yes, its possible. Use cdata property
[x,y,z] = peaks(20);
c = rand(20,20);
surf(x,y,z,'cdata',c)
  댓글 수: 2
darova
darova 2021년 3월 4일
Can you show/attach the data?
darova
darova 2021년 3월 4일
I still don't get where you want to change color. Can you show it on the picture?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by