Borrar filtros
Borrar filtros

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

4 visualizaciones (últimos 30 días)
Ritesh
Ritesh el 30 de Mzo. de 2023
Comentada: Ritesh el 3 de Abr. de 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;

Respuesta aceptada

the cyclist
the cyclist el 30 de Mzo. de 2023
Editada: the cyclist el 30 de Mzo. de 2023
retime(f2,'yearly',@(x)std(x,'omitnan'))

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by