When using scatteredInterpolant in Matlab, the x and y coordinates should be in the form of column vectors. This means that if you have n data points, x and y should be column vectors of size (n,1) each.
Here is a simple example to illustrate this:
main.m329 chars14 lines
Make sure x and y are column vectors while creating the scatteredInterpolant.
gistlibby LogSnag