Surfplot with surface color as a function of gradient (slope)
20 ビュー (過去 30 日間)
古いコメントを表示
Karthik Vemireddy
2018 年 8 月 8 日
編集済み: Karthik Vemireddy
2018 年 8 月 9 日
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!