Differences between matlab griddata and python griddata

26 ビュー (過去 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 Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by