Replace -99 with NaN
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How do I repalce -99 values with NaN?
0 Kommentare
Antworten (3)
Steven Lord
am 21 Jan. 2020
Consider using the standardizeMissing function. The first example on that documentation page does exactly what you described.
0 Kommentare
VBBV
am 27 Feb. 2022
Bearbeitet: VBBV
am 27 Feb. 2022
Data = load('precip.txt'); % use load function
Data(Data == -99) = NaN
Use load function instead of readtable and try with commented line, in your snapshot code
1 Kommentar
Stephen23
am 27 Feb. 2022
Use READMATRIX instead of LOAD.
That fact that LOAD imports a limited set of text files is really for compatilbilty with ancient MATLAB versions.
Siehe auch
Kategorien
Mehr zu NaNs 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!