"Nan" values ​​appear when I run the program. How can I remove them?

조회 수: 1 (최근 30일)
Muhendisleksi
Muhendisleksi 2017년 8월 14일
편집: Adam 2017년 8월 15일
I have added photos for you to understand the problem:
  댓글 수: 8
Adam
Adam 2017년 8월 15일
편집: Adam 2017년 8월 15일
What do you mean by 'destroy'? Like I said, data has a structure. Your data is in a 2d structure. If you simply remove all the NaNs it will collapse to 1d and lose all its structure. Youre data appears to be ~90% NaNs though which is a little suspicious!
John D'Errico
John D'Errico 2017년 8월 15일
NaNs are the result of an indeterminate operation. So you did something where the computer did not have a valid result to place there.
Essentially, it is best if you show how the NaNs were created. Then you can "remove" them by not creating them in the first place.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by