필터 지우기
필터 지우기

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