필터 지우기
필터 지우기

Create 3D heatmap from 3D node coordinates and Pressure Values

조회 수: 57 (최근 30일)
Ali Daher
Ali Daher 2023년 1월 24일
댓글: Abdul Rahim 2023년 3월 27일
Hello,
I have an N by 3 coordinate matrix, where N is the number of nodes (points), and the first, second and third columns correspond to the 3D coordinates. I also have an N vector corresponding to the values (or pressure) at those nodes. Note that the nodes are not equally spaced (i.e. in some regions the nodes are closer to one another than the rest of the domain). Is there a function/way to generate some form of a 3D heatmap (well pressure map) from this information? Attached is an example of the plot I am looking for.
Ideally I want it to cover the entire 3D domain in the plot, so perhaps some automatic interpolation scheme behind the scenes I would imagine.
Thanks!

답변 (1개)

Vinayak Choyyan
Vinayak Choyyan 2023년 2월 8일
Hello Ali,
As per my understanding, you have n points in the 3D coordinate space and corresponding values of pressure. You would like to plot these to produce an image similar to that you have provided.
This looks like it can be done using the 3D scatter ‘scatter3’ function. Please refer to the following documentation to see and example on how to do the same. https://in.mathworks.com/help/matlab/ref/scatter3.html?s_tid=doc_ta#mw_980777c0-abb7-4053-b084-6da6cc75c25a
I hope this resolves the issue you are facing.
  댓글 수: 3
Vinayak Choyyan
Vinayak Choyyan 2023년 2월 9일
Hi Ali,
I am glad you found a solution to the issue you were facing.
Looking at the image you shared, I assumed you had a very densely packed data and increasing the circle sizes would pack it enough to get similar result as shown in the image.
Abdul Rahim
Abdul Rahim 2023년 3월 27일
Hi Ali, can you please share how could you generate a similar heat map?

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

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by