R's approxfun in Matlab
What is the equivalent for R's approxfun
in Matlab?
I used interp3()
to calculate the interp开发者_运维问答olation points, now I need to create an inverse function to perform this interpolation. Any ideas?
When you need the inverse of a function you should simply reverse the order of the x and y values. So if interp3( x, y) gets you a satisfactory function, then interp3( y, x) should produce the inverse, subject of course to the possibility you may need to do it piecewise if it is not monotonic.
精彩评论