Surfplot with surface color as a function of gradient (slope)
32 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Karthik Vemireddy
am 8 Aug. 2018
Bearbeitet: Karthik Vemireddy
am 9 Aug. 2018
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Yuvaraj Venkataswamy
am 8 Aug. 2018
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 Kommentare
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!