Changing <undefined> in a table to NA

13 ビュー (過去 30 日間)
Claire Hollow
Claire Hollow 2020 年 5 月 29 日
コメント済み: Abdulah Al Mubin 2021 年 5 月 21 日
Hello. I feel this should not be too hard but I still can't seem to figure it out. I have a 2500x14 table, in random spots throughout the table some are '<undefined>', I want to change all of those undefined to 'NA'. I tried working with isundefined but always end up with an error. Thank you in advance for the help!

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 5 月 29 日
I suggest trying to use fillmissing.
B = fillmissing(A,'constant','NA');
  3 件のコメント
Claire Hollow
Claire Hollow 2020 年 5 月 29 日
Never mind I got it working now. Thank you so much for the help!
Abdulah Al Mubin
Abdulah Al Mubin 2021 年 5 月 21 日
Could you please share your solution?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by