How to detect variations in data?
显示 更早的评论
Hello everyone,
I would like to determine the location at which there is data variation (like the highlighted points in the attached image).
Kindly find the attached code + .mat file.
Each sub-plot represents a variable on y-axis and the time on x-axis. Usually, the variation appear in several variables (plots) like this one.

Could you suggest the best method to do so?
and How can I determine the starting and ending points of that variation?
I appreciate your help.
采纳的回答
更多回答(1 个)
Ridwan Alam
2019-12-23
1 个投票
Depends on how complex of a solution you are looking for. There are algorithms for change point detection that you can try.
Or, you can have a sliding window (your defined size) over the signal and look for specific features (e.g mean crossing rate, variance, etc. depending your signal type) to find the windows that contain a "change".
Hope this helps.
9 个评论
Mohamed Nedal
2019-12-23
Ridwan Alam
2019-12-23
Please check the link above, there are some examples. Try on your own data, and if there is any difficulty, please feel free to ask about that.
Mohamed Nedal
2019-12-24
编辑:Mohamed Nedal
2019-12-24
Ridwan Alam
2019-12-24
编辑:Ridwan Alam
2019-12-24
Why can’t it be done? Please show your code and I will try to debug.
Mohamed Nedal
2019-12-25
Image Analyst
2019-12-25
Did you also give my code a try?
Mohamed Nedal
2019-12-26
Image Analyst
2019-12-26
I think findchangepts() locates points where the data goes from smooth to something drastically different, or vice versa. So it basically finds corners or elbows in the data.
movstd() on the other hand gives a high signal wherever the data has high variability regardless if the signal looks like a corner or elbow there.
Mohamed Nedal
2019-12-26
类别
在 帮助中心 和 File Exchange 中查找有关 Signal Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
