Borrar filtros
Borrar filtros

help In NAN problem

2 visualizaciones (últimos 30 días)
mutah
mutah el 19 de Nov. de 2013
Respondida: Sean de Wolski el 19 de Nov. de 2013
Hi
MY code generate 1000000 samples
and when i want to sum this samples
it give me NAN
what the problem ??

Respuestas (1)

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

Categorías

Más información sobre NaNs en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by