Color Surface Plot for specific areas

4 views (last 30 days)
Cb on 4 Mar 2021
Commented: darova on 4 Mar 2021
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?

Answers (1)

darova on 4 Mar 2021
Yes, its possible. Use cdata property
[x,y,z] = peaks(20);
c = rand(20,20);
darova on 4 Mar 2021
I still don't get where you want to change color. Can you show it on the picture?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!