"Nan" values appear when I run the program. How can I remove them?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have added photos for you to understand the problem:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166692/image.jpeg)
8 Kommentare
Adam
am 15 Aug. 2017
Bearbeitet: Adam
am 15 Aug. 2017
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
am 15 Aug. 2017
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.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!