Surfplot with surface color as a function of gradient (slope)
19 次查看(过去 30 天)
显示 更早的评论
Hi,
I would like to plot a surface plot, where i would like to vary the surface color based on the gradient of z instead of its magnitude. Is there a way to do it?
Thanks and Regards
0 个评论
采纳的回答
更多回答(1 个)
Yuvaraj Venkataswamy
2018-8-8
if true
surf(X,Y,Z)
end
surf(X,Y,Z) creates a three-dimensional surface plot. The function plots the values in matrix Z as heights above a grid in the x-y plane defined by X and Y. The function also uses Z for the color data, so color is proportional to height.
0 个评论
另请参阅
类别
在 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!