Slice through a surface plot to create a contour plot

조회 수: 3 (최근 30일)
Mai Sakuragi
Mai Sakuragi 2020년 3월 3일
댓글: Mai Sakuragi 2020년 3월 3일
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.
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
Mohammad Sami
Mohammad Sami 2020년 3월 3일
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.
Mai Sakuragi
Mai Sakuragi 2020년 3월 3일
Hi, thank you for your comment. Unfortunately I am dealing with numerical values and there are no functions...
The 3D plot on the website (previous question) was build with numerical values.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by