Correlate two sets of data defined on different meshings of the same surface

4 ビュー (過去 30 日間)
Anshuman Pal
Anshuman Pal 2020 年 10 月 3 日
コメント済み: Anshuman Pal 2020 年 10 月 3 日
Hello,
I am trying to correlated two data sets defined on a surface embedded in 3d. The problem is that the two data sets are defined on two separate meshes, which are moreover slighty displaced with respect to each other, i.e. the underlying x,y,z coordinates are different. Moreover, the mesh densities are also very different (see image below, there are roughly 3 blue x's for every 1 orange o).
Note: The reason for this is that one set of data is defined at the centre of mass of a 3d tetrahedral mesh, while the second set of data is defined on a separate 2d triangular mesh. Both meshes are representations of the same physical surface-like object though.
Question: How do I find which 3 x's correspond to a single orange o? If I could find that, I could average the data over these 3 neighbouring x's and have a 1:1 mapping between the blue points and the orange points.
Or does anyone have another way of doing this?
I am attaching a mat file with the x,y,z coordinates of the two sets, the orange ones are in 'surface_vertices', and the blue ones in 'cm_vertices'.
Please help!

回答 (1 件)

KSSV
KSSV 2020 年 10 月 3 日
You can get the respective mesh Z values to a required grid, using interpolation menthods.
Read about griddata, scatteredinterpolation.
  3 件のコメント
KSSV
KSSV 2020 年 10 月 3 日
No that case might fail...
Anshuman Pal
Anshuman Pal 2020 年 10 月 3 日
Thought so. I will leave this question open to see if anyone else has a different idea. I will ask around for interpolation of multi-valued functions in the meantime.

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

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by