Color Surface Plot for specific areas
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!