필터 지우기
필터 지우기

Differences between matlab griddata and python griddata

조회 수: 43 (최근 30일)
SOMIN LEE
SOMIN LEE 2023년 6월 29일
답변: Arya Chandan Reddy 2023년 6월 29일
I want to get the same result when running matlab griddata and python griddata, but the values are slightly different. Therefore, I would like to know in detail about the implementation method of grid data of Matlab. Which part is different from Python, etc.

답변 (1개)

Arya Chandan Reddy
Arya Chandan Reddy 2023년 6월 29일
Hi, as I understand you are trying to figure out differences between the implementations of griddata in MATLAB and python. In MATLAB scattered data interpolation with griddata uses a Delaunay triangulation of the data. However its implementation goes into realm of its own.
The cause of this difference could be the method of interpolation used, fill_value (in scipy) and as stated in the MATLAB documentation and the equivalent of scipy, this could be caused due to the senstivity to scaling.
As stated in the documentation try to use normalize to get desired results.
Hope this helps.

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by