Differences between matlab griddata and python griddata

26 vues (au cours des 30 derniers jours)
SOMIN LEE
SOMIN LEE le 29 Juin 2023
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.

Réponses (1)

Arya Chandan Reddy
Arya Chandan Reddy le 29 Juin 2023
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.

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by