is NA the name as NaN?
조회 수: 9 (최근 30일)
이전 댓글 표시
I have read in a csv file into a 406x9 matrix and one of the columns has a few values that are "NA", I want to replace these values with a number.
I have tried to use file(isnan(file))=0 to replace the NA values with 0 but when I run my code nothing happens and the NA values remain, so is NA different to NaN and therefor needs a different method to replace these NA values?
댓글 수: 0
답변 (1개)
Walter Roberson
2020년 12월 7일
https://www.mathworks.com/help/matlab/matlab_prog/clean-messy-and-missing-data-in-tables.html
shows dealing with NA
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!