A customer asked me last week how to do multidimensional interpolation with integer inputs. The MATLAB function interpn supports only double- and single-precision inputs.
It's possible to do this using a little-known Image Processing Toolbox function called tformarray. But tformarray is a general spatial transformation engine with a complicated syntax. It isn't easy to figure out how to use it for interpolation, so I decided to write a wrapper M-file to do it.
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.