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 Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by