I have a function which takes six variables and gives a single numerical value, newfn(a,b,c,d,e,f,), although most will only take a small range of values, and want to create a grid where I vary these variables and then be able to interpolate values between the grid. As I understand it I need to make the grid for reference data first, for the sake of quick computation say it is something like:
then find the reference values:
then suppose our grid of values to interpolate to is given by
Then I thought I'd be able to use griddatan like this:
but this isn't working, so I'm going badly wrong somewhere?