Finding abrupt changes in the data
이전 댓글 표시
I'm trying to use the ischange function to find abrupt changes in my data however the function seems to be missing a prominent change. The data at x= 115 (in the plot) drops off sharply and I want to capture this value for other steps in the processing. Basically, I want to find the distance between the peak at X=15 and the sharp drop at X=115. I have tried the various parameters and can not get the code to recognize this region as an abrupt change in the data. Do you have any suggestion? My version is 2022b.

my code from Live Editor:
DFe=DF(1,75:200);
[TF3,S13] = ischange(DFe(1,:),'linear','MaxNumChanges',3);
JX = find(TF3);
JY = DFe(TF3);
figure; plot(DFe(1,:)); hold on
plot(JX,JY,'*')
댓글 수: 2
Voss
2024년 3월 9일
From the screen shot, it looks like it found the drop at index 115.
If anyone should investigate, they'll need your data. Please upload your data (e.g., variables(s) saved to a mat-file) using the paperclip button.
Mathieu NOE
2024년 3월 11일
finding the first peak could also be easily achieved with max
finding the drop can probably be found by finding the point of maximum negative slope
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!