MATLAB: Does “griddata” return slightly different results in MATLAB R2019a

MATLAB

Why does "griddata" return slightly different results in MATLAB R2019a?
In R2018b or before, my results contained some numbers that were returned 0. However, when I upgraded to R2019a, I observe small numbers in the order of 1e-20 instead of 0. What is the reason for this difference?

Best Answer

The function "griddata" uses "scatteredInterpolant" internally under certain circumstances. The difference you are observing is simply a matter of numerical round-off that is within acceptable tolerance.
In this particular case, the difference in numerical round-off is caused by a recent bug fix: https://www.mathworks.com/support/bugreports/1830826