(Need Help) How to Obtain 2D Interpolation Coefficient?

5 visualizzazioni (ultimi 30 giorni)
I have a pre-setup 2D matrix whose size is [N x N].
Using this data, I want to find the each coefficient k in the below specific funtion.
z=k11*x^2+k22*y^2+...
k12*x*y+...
k1*x+k2*y+k0;
What's the simplest way to obtain these coefficients in Matlab?
It seems that the command 'interp2' does not provide these coefficients.
  2 Commenti
Changwoo Lee
Changwoo Lee il 29 Ott 2021
Modificato: Changwoo Lee il 29 Ott 2021
The equation in reply is correct. I modified the equation in my question.

Accedi per commentare.

Risposta accettata

Matt J
Matt J il 29 Ott 2021
Modificato: Matt J il 29 Ott 2021
If you have the Curve Fitting Toolbox, you can follow this example
except you would use the 'poly22' model instead of 'poly44'
If you don't have the toolbox, then see one of these FEX submissions.
  1 Commento
Changwoo Lee
Changwoo Lee il 29 Ott 2021
Modificato: Changwoo Lee il 29 Ott 2021
Thank you very much for your kindness.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Interpolation in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by