Which interpolation method is best?
27 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sarah Yun
am 16 Dez. 2019
Beantwortet: Walter Roberson
am 16 Dez. 2019
Hi,
I have a colomn of temperature data in a 4 column width table.
Some of the temp data has NANs - but it is regulary spaced over time.
I want to interpolate the temp data (to fill in the NANs) 4 times using different methods each time
- linear
- spline
- pchip
- makima
I can calculate the variance of each interpolation and compare it to the variance of the original data
The interpolation with the most similar variance will be selected.
Can you suggest code to do this?
Thank you
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 16 Dez. 2019
Use https://www.mathworks.com/help/matlab/ref/fillmissing.html#bva1z1c-method fillmissing() -- it supports all of the methods you are interested in.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!