interpolate 3D data onto 2D plane

조회 수: 14 (최근 30일)
zein
zein 2022년 4월 3일
답변: Esha Chakraborty 2022년 4월 7일
I have variables (p,T,u,v,w) that are output for 3D block. Each point location is defined by (x,y,z) with corresponding value of the variables (p,T,u,v,w).
Is it possible to interpolate the 3D data to 2-D plane shown in the following figure?
Can gridata function be used for doing this interpolation?
In that case, xq,yq and zq are points on the 2-D plane (outlined in black color)?
  댓글 수: 2
Torsten
Torsten 2022년 4월 3일
Strange plane. Is it curved ?
zein
zein 2022년 4월 3일
the plane is straight

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

답변 (1개)

Esha Chakraborty
Esha Chakraborty 2022년 4월 7일
Hi Zein,
I understand that you want to determine the possibility of interpolating 3D data onto 2D plane using griddata() function.
It is possible to fit a hypersurface of the form v = f(x,y,z) using griddata(x,y,z,v,xq,yq,zq), where griddata() function interpolates the surface at the query points specified by (xq,yq,zq) and returns the interpolated values, vq.
You can find a similar example in the link below:
You can also find more details about the griddata() function here.

카테고리

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

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by