MATLAB: I am using curve fitting for three variables using linear interpolation, z =f(x,y). It gives me SSE =0 too. How to know which equation it formed from the data between x and y to give z

cure fittingequationlinear interpolation

The data I fed was, lambdadata = [ 632; 800; 1064; 1310; 1550]; in place of X Vdata = [11.9301; 18.8496; 21.2589; 57.5559; 68.1016], in place of Y Qdata = [17.7814; 23.8662; 25.3449; 56.7292; 64.3683]; in place of Z.
I want to know the equation it made for, q =…containg lambda and V. How can I find one ?
Thanks, Chetna.

Best Answer

There is NO simple equation, no magic formula. In two dimensions, it uses what is called bilinear interpolation. It is sort of like pure linear interpolation, but in two dimensions, things are slightly more complicated. Another way of naming the interpolation done there is to describe it as a tensor product linear spline, in two dimensions.
https://en.wikipedia.org/wiki/Bilinear_interpolation
You can view a bilinear interpolant as that which you will get by doing successive linear interpolations in x, and then in y. The result is not truly linear though. You will get a simple piecewise polynomial approximation in each cell of the lattice.
Of course it gives an error of exactly zero too. Interpolation will do that at the data points. It returns the exact values for each point, so no error at all.
Related Question