Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to replace nan with the mean of the four numbers surrounding it?

1 回表示 (過去 30 日間)
JFz
JFz 2018 年 6 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi,
I have a large matrix and there are nan in it. Sometimes a whole row is a nan. How to replace nan with the mean of the four numbers surrounding it? And sometimes, two NaNs are side by side. Thanks!
  1 件のコメント
JFz
JFz 2018 年 6 月 18 日
Thanks! Let me try...Will get back to you soon.

回答 (1 件)

Stephen23
Stephen23 2018 年 6 月 18 日

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by