필터 지우기
필터 지우기

help In NAN problem

조회 수: 3 (최근 30일)
mutah
mutah 2013년 11월 19일
답변: Sean de Wolski 2013년 11월 19일
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일
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