eliminating NaN values from an array
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
KalMandy
am 10 Nov. 2016
Beantwortet: Steven Lord
am 19 Jan. 2020
Hi, does someone know how to eleiminate NaN values from an array? For example I have an array [NaN 0.6451 NaN 0.8339 0.8015 ], I want to make it [0.6451 0.8339 0.8015 ]
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (2)
Steven Lord
am 19 Jan. 2020
In newer releases you can use rmmissing to remove missing data (NaN for double and single precision data, <undefined> for categorical arrays, etc.) There are other functions for working with missing data like fillmissing listed on this documentation page.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!