Color Surface Plot for specific areas

1 回表示 (過去 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 Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by