필터 지우기
필터 지우기

Finding closest point to a NaN value

조회 수: 3 (최근 30일)
Johan
Johan 2012년 7월 12일
Hi!
I'm having a matix whith numbers and NaN values. I'm having some problems finding the closes number to a NaN value, i Have used knnsearch and dsearchn, they both works good if it finding closest number to number but from NaN-point to number, the result is just NaN. Is there anyone who can help me? BR Johan
  댓글 수: 1
the cyclist
the cyclist 2012년 7월 12일
Is 14 closer to NaN, or is 37 closer? What about -14? Or infinity?
(In other words, what do you mean by "close" to something that, by construction, is Not-A-Number?)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 NaNs에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by