How I can ignore NaN during calculating @std using "retime.
2 ビュー (過去 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;![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1340439/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1340439/image.jpeg)
0 件のコメント
採用された回答
the cyclist
2023 年 3 月 30 日
編集済み: the cyclist
2023 年 3 月 30 日
retime(f2,'yearly',@(x)std(x,'omitnan'))
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で NaNs についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!