I have some code that uses griddedInterpolant, and it runs fine for the most part. However, there is the rare case where it spits out the error
"Not enough input arguments"
or
"Index in position 1 is invalid. Array indices must be positive integers or logical values."
I thought "that's strange, I'd better check that the inputs are sensible," so I set up my code to throw an error report with a list of the input values. I then re-inserted those input values into my griddedInterpolant, and it didn't throw an error! I have absolutely no idea what's going on – the gridded interpolant works for the values that cause it to throw an error!?
Have you ever seen griddedInterpolant throw these errors before? What was the remedy?
Best Answer