Currently I am working with variables that have 1400 data inputs each and some of them come out as NaN. Is there a way to scan the variables to remove the NaNs and create new ones automatically? I tried setting it up with a for and an if cycle but didn’t find much success, will send screenshot of my attempts asap since I don’t have them with me rn.

 채택된 답변

Star Strider
Star Strider 2023년 12월 9일

0 개 추천

There are functions like fillmissing to interpolate the NaN entries and rmmissing to delete them (the entire row with a NaN entry).

댓글 수: 4

Lorenzo
Lorenzo 2023년 12월 9일
Thank you I’ll try as soon as I get home
Star Strider
Star Strider 2023년 12월 9일
My pleasure!
Lorenzo
Lorenzo 2023년 12월 12일
Sorry for the late reply, worked like a charm, thank you.
Star Strider
Star Strider 2023년 12월 12일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interpolation of 2-D Selections in 3-D Grids에 대해 자세히 알아보기

태그

질문:

2023년 12월 9일

댓글:

2023년 12월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by