필터 지우기
필터 지우기

Lagrange interpolation in 2D?

조회 수: 20 (최근 30일)
Xh Du
Xh Du 2017년 6월 19일
댓글: image-pro 2021년 12월 23일
Hi all,
I'd like to find the interpolating polynomials on a 2d domain.
Imagine we have sample points (x1, y1), ... ,(xn, yn), and values at these points (z1, ..., zn), what is the interpolation polynomials for this 2-dimensional case? Is there a library in MATLAB to do this?
Further more, if the values at these points are matrices (m1, ... , mn), can we interpolate these matrices?
Many thanks!

채택된 답변

John D'Errico
John D'Errico 2017년 6월 19일
편집: John D'Errico 2017년 6월 19일
That you can't find it is a good thing.
Lagrange interpolation is a nice thing for ONE purpose only: to teach students some basic ideas. What those teachers fail to followup with is that it is a bad thing to use when you really need to do interpolation. So then those students go into the world, and try to use it. Worse, then they want to do stuff like use it for 2-d interpolation. Don't do it. The idea has "bad" written all over it.
There are many schemes around for 2-d interpolation/modeling. Use one of them. Start with scatteredInterpolant, or you might use radial basis function interpolation (I recall it being on the FEX), or approximation tools like my gridfit (on the FEX), or neural nets. Or there is Kriging, or use splines.
  댓글 수: 4
Xh Du
Xh Du 2017년 6월 20일
Hi Torsen,
This one works, I should interpolate x first then y dimension, many thanks!
image-pro
image-pro 2021년 12월 23일
Hi Xh Du
Can you tell me how to interpolate image using lagrange method

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by