Changing <undefined> in a table to NA

조회 수: 10 (최근 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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by