How I can ignore NaN during calculating @std using "retime.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ritesh
am 30 Mär. 2023
Kommentiert: Ritesh
am 3 Apr. 2023
d2_std = retime(f2,'yearly',@std);
Here "f2" is monthly data containg some of the month NaN. so, "d2_std" giving NaN for all the year, how I can ignore NaN of f2;![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1340439/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1340439/image.jpeg)
0 Kommentare
Akzeptierte Antwort
the cyclist
am 30 Mär. 2023
Bearbeitet: the cyclist
am 30 Mär. 2023
retime(f2,'yearly',@(x)std(x,'omitnan'))
Weitere Antworten (0)
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!