help In NAN problem

1 visualizzazione (ultimi 30 giorni)
mutah
mutah il 19 Nov 2013
Risposto: Sean de Wolski il 19 Nov 2013
Hi
MY code generate 1000000 samples
and when i want to sum this samples
it give me NAN
what the problem ??

Risposte (1)

Sean de Wolski
Sean de Wolski il 19 Nov 2013
Anything + NaN yields NaN. Use nansum() to sum ignoring nans.
doc nansum

Community Treasure Hunt

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

Start Hunting!

Translated by