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 件のコメント
Robert Jones
Robert Jones 2024 年 9 月 11 日
Thanks, will try
Star Strider
Star Strider 2024 年 9 月 11 日
My pleasure!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by