equation from 2D Matrix of data

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

 Accepted Answer

Torsten
Torsten on 11 Aug 2015
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.

1 Comment

Thanks a lot Torsten,
interp2 is simple and best way for me

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 11 Aug 2015

Commented:

on 11 Aug 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!