For certain cases, when I use the GRIDDATAN function to fit scattered data, the function returns NaN values. The data points are generated from smooth functions and none are external to the data, therefore I do not expect to see any NaN values in the output.
The attached file contains code that can reproduce this error.
Best Answer