can someone explain me How to deal with NaN in data

2 ビュー (過去 30 日間)
umesh  birajdar
umesh birajdar 2018 年 10 月 20 日
回答済み: Jose Sanchez 2018 年 10 月 20 日
Hi, I'm doing PCA for data 106x512 size after standardizing data getting NaN in the data set, so I'm not able to do the PCA for standardized data can someone help with this issue. THANKS IN ADVANCES

回答 (1 件)

Jose Sanchez
Jose Sanchez 2018 年 10 月 20 日
Check if there is NaN is your data. Function "isnan" will do that (see help isnan). Combine with function "any" to select rows or columns that contain at least one NaN. Let's call your matrix X, then the code below will select the row indices:
ind = find(any(isnan(X),2))

カテゴリ

Help Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by