contour lines on the surface plot
47 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Masa
el 6 de Feb. de 2022
Respondida: Masa
el 7 de Feb. de 2022
How to plot a surface with its contour lines drawn on it?
this image is an example of what I mean:

0 comentarios
Respuesta aceptada
Star Strider
el 6 de Feb. de 2022
Try something like this —
[X,Y,Z] = peaks(50); % Example Surface
figure
surf(X,Y,Z, 'EdgeColor','none') % Surface Plot
hold on
contour3(X,Y,Z,10, '-k', 'LineWidth',1.5) % Add Contours
hold off
grid on
colormap('jet')
shading('interp')
view(30,45)
Make appropriate changes to get the desired result.
.
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

