how to calculate anomaly ?
8 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I want to extract data based on the months using this function 'monthofyear' to calculate anomalies.
The written code shows the wrong results.
Any help is appreciated
anom=[];
i=1;
for yy = 2019
ndays = eomday(yy, 1:12);
for mm = 1:12
for dd = 1:ndays(mm)
monthofy = month(datetime(yy,mm,dd),'monthofyear');
nn = norm(:,:,monthofy);
anom(:,:,i) = sez_chl - nn; %sez_chl is 3d matrix 72*46*46
i=i+1;
end
end
end
0 件のコメント
回答 (1 件)
Image Analyst
2022 年 2 月 15 日
There is a whole family of "outlier" functions, like rmoutliers(), etc. Look into them.
3 件のコメント
Image Analyst
2022 年 2 月 17 日
Note that you forgot to read this
and attach your data, so all we can do is guess. We have not seen your time series data, sez_chl, or norm.
参考
カテゴリ
Help Center および File Exchange で Testing Frameworks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!