필터 지우기
필터 지우기

3D plot help

조회 수: 3 (최근 30일)
Diab Abueidda
Diab Abueidda 2019년 8월 27일
댓글: Diab Abueidda 2019년 10월 17일
Hi,
I have a row data composed of independent variables x, y, and z and a dependent variable D, and I would like to 3d plot the geometry. Each independent and dependent variable is a 1D array. However, all 3d plotting functions that I am aware of such as isosurface require 3D arrays. My question is how I can transfom the different arrays into 3d arrays, given that they are not uniform.
  댓글 수: 21
Diab Abueidda
Diab Abueidda 2019년 9월 5일
No worries, take your time.
Many thanks
Diab Abueidda
Diab Abueidda 2019년 9월 10일
Hi Walter,
Any thoughts?
Thanks

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

채택된 답변

Thomas Satterly
Thomas Satterly 2019년 9월 10일
If you're expecting the independant variables X, Y, and Z to make some nice looking 3D surface, you can use Delaunay Triangulation to make a best guess at what that surface would look like and set the corresponding vertex colors to a colormap scaled by dependant variable D. However, you have to be careful about extrapolating data between points using this approach, as the edges generated by triangulation are purely ficticious.
If there is no expected surface between the independant variables, I'd recommend using a 3D scatterplot of X, Y, and Z with the point colors or size determined by dependant variable D. This might be harder to visualizes than a surface, since there's not as strong of relational queues to nearby points, but it does eliminate some misleading extrapolation that generating a surface would cause.
  댓글 수: 1
Diab Abueidda
Diab Abueidda 2019년 10월 17일
Thanks a lot, Thomas!
It worked.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scalar Volume Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by