Could anyone tell me why NaN is being present instead of numbers.
2 ビュー (過去 30 日間)
古いコメントを表示
Could anyone tell me why NaN is being present instead of numbers.
0 件のコメント
採用された回答
Birdman
2018 年 2 月 5 日
編集済み: Birdman
2018 年 2 月 5 日
Read the following blog. It is helpful:
3 件のコメント
Jan
2018 年 2 月 5 日
@Prabha: To avoid the creation of NaN value, you have to avoid to perform calculations, which have NaN as result. There is no general way to "avoid" them, because they are the mathematically correct result for certain operations.
You get e.g. NaN for the numerical value of an imported Excel file, if the corresponding cell contains a string. Or you get NaN, if you divide by 0. If you need a method to catch this, post the relevant part of your code, as usual.
その他の回答 (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!