Eliminating specific data from a file

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 ExchangeInterpolation 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