How to plot a 3D contour plot when the contours is a forth vector

조회 수: 3 (최근 30일)
Robert Jones
Robert Jones 2024년 9월 9일
댓글: Star Strider 2024년 9월 11일
Hello,
I have a set of data X,Y,Z,A. I would like to plot A in 3D. Not sure how to proceed.
It would be nice to have contour plots for A as a function of x,y,z
Is this possible?
Thank you

답변 (1개)

Star Strider
Star Strider 2024년 9월 9일
Use the contour3 function. If ‘A’ is a list of the contour levels, all the MATLAB contour functions accommodate defining the contour levels in a vector. The contour3 function can be used in conjunction with surf (or surfc) to plot them on the surface. Use the hold function to do that.
  댓글 수: 5

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

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by