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

조회 수: 5 (최근 30일)
Ritesh
Ritesh 2023년 3월 30일
댓글: Ritesh 2023년 4월 3일
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