필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Changwoo Lee
Changwoo Lee 2021년 10월 29일
편집: Changwoo Lee 2021년 10월 29일
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
Matt J
Matt J 2021년 10월 29일
You have y on both the left and right hand side of the equation. Are they the same y or did you mean
z=k11*x^2+k22*y^2+...
k12*x*y+...
k1*x+k2*y+k0;
Changwoo Lee
Changwoo Lee 2021년 10월 29일
편집: Changwoo Lee 2021년 10월 29일
The equation in reply is correct. I modified the equation in my question.

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2021년 10월 29일
편집: Matt J 2021년 10월 29일
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
Changwoo Lee
Changwoo Lee 2021년 10월 29일
편집: Changwoo Lee 2021년 10월 29일
Thank you very much for your kindness.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by