how to calculate anomaly ?

조회 수: 15 (최근 30일)
Lilya
Lilya 2022년 2월 15일
댓글: Lilya 2022년 2월 19일
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

답변 (1개)

Image Analyst
Image Analyst 2022년 2월 15일
There is a whole family of "outlier" functions, like rmoutliers(), etc. Look into them.
  댓글 수: 3
Image Analyst
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.
Lilya
Lilya 2022년 2월 19일
norm is a function in matalb
also, i've attached the data.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Testing Frameworks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by