开发者

R's approxfun in Matlab

开发者 https://www.devze.com 2023-03-09 03:38 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消