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

카테고리

도움말 센터File Exchange에서 NaNs에 대해 자세히 알아보기

질문:

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