Azzera filtri
Azzera filtri

How I can ignore NaN during calculating @std using "retime.

4 visualizzazioni (ultimi 30 giorni)
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;

Risposta accettata

the cyclist
the cyclist il 30 Mar 2023
Modificato: the cyclist il 30 Mar 2023
retime(f2,'yearly',@(x)std(x,'omitnan'))

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by