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

Antworten (1)

Sean de Wolski
Sean de Wolski am 19 Nov. 2013

0 Stimmen

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

Gefragt:

am 19 Nov. 2013

Beantwortet:

am 19 Nov. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by