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

3 次查看(过去 30 天)
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;

采纳的回答

the cyclist
the cyclist 2023-3-30
编辑:the cyclist 2023-3-30
retime(f2,'yearly',@(x)std(x,'omitnan'))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by