How to replace NaN in tables?
조회 수: 2 (최근 30일)
이전 댓글 표시
So I have a large table with lots of NaNs when importing it from a text file. Is there any way to leave those cells blank when initially importing or delete the NaNs after importing? I've tried
HabExEnglishPropCopy(~any(~isnan(HabExEnglishPropCopy), :),:)=[];
but the errors say either "any" is not a defined variable or that isnan is not valid for "table" arguments. Any help?
댓글 수: 0
답변 (1개)
Peter Perkins
2018년 2월 22일
You should look at ismissing, fillmissing, rmmissing, and at the various options in readtable and detectimportoptions.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!