Need suggestion -- which interpolation method should I use?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ashfaq Ahmed
il 15 Dic 2022
Risposto: Image Analyst
il 16 Dic 2022
Hi all,
I am working with a relatively sparse matrix with a lot of NaN values. As you can see from the attached picture -
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1232817/image.png)
What kind of interpolation scheme do you think will fit the best for this kind of case? Any feedback will be greatly appreciated!
3 Commenti
Walter Roberson
il 15 Dic 2022
"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.
Risposta accettata
Walter Roberson
il 15 Dic 2022
However, this depends upon the idea that the data is continuous in 2D, rather than each row or each column being independent.
0 Commenti
Più risposte (1)
Image Analyst
il 16 Dic 2022
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.
0 Commenti
Vedere anche
Categorie
Scopri di più su Spreadsheets in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!