Creating a Surface Fit for an incomplete 2D array

I have a largish nxm matrix of values, with certain random cell values missing (currently set as 0 inside the matrix, but this could be changed to something different). I need to apply a fit, preferebaly nth degree polynamial, to get a plane. Does anyone have any suggestions as to how to go about this?
I'm not the best with vectors/matricies in general and I seem to struggle particularly in MATLAB. I have tried using 'sftool' but it only seems to allow selection of vectors for the data, which seems illogical to me. Is there something I can do to counteract this?
Any help would be greatly appreciated.
Many thanks!

 채택된 답변

Walter Roberson
Walter Roberson 2012년 8월 8일

1 개 추천

Use the MATLAB File Exchange function "inpaint_nans"

댓글 수: 1

John
John 2012년 8월 8일
Thanks, that's an interesting function. Ideally though a want a surface to be fitted as best as possible to the points, ideally as a polynomial.
I have fewer points known than missing so the type of interpolation used for that function isn't giving me the type of results that I would like. I believe something like the surface fitting tool would be ideal but I don't understand why I can't use it on a 2d array.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by