How to fill NaN values in 3d array using interpolation?

I have 3 dimansion array:
precipitation=(longitude*latedute*time)
in the precipitation array I have bunch of NaN values, now i want to fill this values using interpolation.
my matlab version is R2015a.
I want to interpolate NaN values based on nearest non-missing value.
if you can write me a sample code or something I would be thankfull.
best regards.

 採用された回答

Stephen23
Stephen23 2019 年 10 月 14 日

1 投票

3 件のコメント

BN
BN 2019 年 10 月 14 日
Dear Stephen
thank you, but in the caption of this file we read that: Interpolates (& extrapolates) NaN elements in a 2d array.
but I have array= lon*lat*time
you think still I can use this file or not?
thank you again.
Stephen23
Stephen23 2019 年 10 月 14 日
編集済み: Stephen23 2019 年 10 月 14 日
BN
BN 2019 年 10 月 14 日

Thank you

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

BN
2019 年 10 月 14 日

コメント済み:

BN
2019 年 10 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by