Slice through a surface plot to create a contour plot
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
This is my previous question.
I have the same 3D surface plot, and now I need to create a 2D coutour plot at z = 0.
Is there a way to do that? Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/274792/image.png)
Now i have something like this by putting
contour(xMat,yMat,delta_r2)
right after
surfl(xMat,yMat,delta_r2,'light')
but when this is just notmal "surf" instead of "surfl" it doesn't work and I need a 2D contour plot, not a slice in a 3D plot.
2 comentarios
Mohammad Sami
el 3 de Mzo. de 2020
I think if you have a function call to surf, you can just replace it with function call to contour and you will get your contour plot.
Respuestas (0)
Ver también
Categorías
Más información sobre Contour Plots 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!