Differences between matlab griddata and python griddata

26 visualizaciones (últimos 30 días)
SOMIN LEE
SOMIN LEE el 29 de Jun. de 2023
Respondida: Arya Chandan Reddy el 29 de Jun. de 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.

Respuestas (1)

Arya Chandan Reddy
Arya Chandan Reddy el 29 de Jun. de 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.

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by