MATLAB: Equation from 2D Matrix of data

2d matrixequation

Hi,
I have a 2D matrix representing system supply current, this value depends on two variables x and y x along the row and y along the column of the 2D matrix
How and what function is to be used to generate one equation from the 2D matrix
example:
i( supply current)=f(x,y)
x---->
y I1 I2 I3
| I4 I5 I6
| I7 I8 I9
v

Best Answer

For most purposes, MATLAB's interp2 will be sufficient.
If you really need an equation, you will have to choose an appropriate form of a function with free parameters (e.g. a polynomial in x and y with unknown coefficients) and use "lsqcurvefit" to fit the parameters to your data.
Best wishes
Torsten.