help In NAN problem

Hi
MY code generate 1000000 samples
and when i want to sum this samples
it give me NAN
what the problem ??

回答 (1 件)

Sean de Wolski
Sean de Wolski 2013 年 11 月 19 日

0 投票

Anything + NaN yields NaN. Use nansum() to sum ignoring nans.
doc nansum

カテゴリ

質問済み:

2013 年 11 月 19 日

回答済み:

2013 年 11 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by