What should I do for NaN values?
2 ビュー (過去 30 日間)
古いコメントを表示
I have an 1x507 array with NaN values and I am using this array for another calculation. That's why I think these are effecting my calculation. What should I do about them? Should they stay as they are or I should do something?
3 件のコメント
Stephen23
2018 年 3 月 13 日
"What should I do about them? Should they stay as they are or I should do something?"
Why do you assume that you have to "do something" about them? NaN values are there for a reason, and it is usually a bad strategy to turn NaN values into some fake data values (e.g. 0): that would probably distort your calculations even more.
回答 (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!