Finding abrupt changes in the data
Afficher commentaires plus anciens
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 commentaires
Voss
le 9 Mar 2024
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
le 11 Mar 2024
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
Réponses (0)
Catégories
En savoir plus sur Descriptive Statistics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!