필터 지우기
필터 지우기

Need suggestion -- which interpolation method should I use?

조회 수: 3 (최근 30일)
Ashfaq Ahmed
Ashfaq Ahmed 2022년 12월 15일
답변: Image Analyst 2022년 12월 16일
Hi all,
I am working with a relatively sparse matrix with a lot of NaN values. As you can see from the attached picture -
What kind of interpolation scheme do you think will fit the best for this kind of case? Any feedback will be greatly appreciated!
  댓글 수: 3
Ashfaq Ahmed
Ashfaq Ahmed 2022년 12월 15일
Hi! Each of the values represent a temperature. Each of the column is a snapshot of a time
Walter Roberson
Walter Roberson 2022년 12월 15일
"snapshot of a time" is not enough information for us, as outside observers, to feel confident that the values can reasonably be treated as continuous in row and column. If, for example, the times (columns) are 12 hours apart, then you would expect a repeated high/low pattern rather than a continuous pattern. And if the rows are weather stations in alphabetical order then the rows might not have anything to do with each other.

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

채택된 답변

Walter Roberson
Walter Roberson 2022년 12월 15일
However, this depends upon the idea that the data is continuous in 2D, rather than each row or each column being independent.

추가 답변 (1개)

Image Analyst
Image Analyst 2022년 12월 16일
You might try scatteredInterpolant. Just plug in the values that you do have (not the nan ones) and it will give you an interpolant object that you can predict any value. For example you can get predictions for the missing nan values if you want. See attached demo.

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by