フィルターのクリア

is NA the name as NaN?

9 ビュー (過去 30 日間)
Aidan Goy
Aidan Goy 2020 年 12 月 7 日
回答済み: Walter Roberson 2020 年 12 月 7 日
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?

回答 (1 件)

Walter Roberson
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

カテゴリ

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