How to create plots for special areas of an array?
Show older comments
Dear people,
I have a plot like this:

I want to plot each of the four waves separately. Of course I could just divide the whole length by 4 but then there would still be the noise from between the big waves. I tried to create a new array where all values smaller than 0.03 are deleted. But then I also delete those values of the big waves as well. Does anybody has an idea how to solve this? Thank you very much:)
5 Comments
PromoCodeBSJ
on 12 Sep 2018
Are the plots subject to change? If not, I would just figure out the x range of the four graphs and then graph those
Stwiwi
on 12 Sep 2018
PromoCodeBSJ
on 12 Sep 2018
Are you acquiring data from an external source?
Stwiwi
on 17 Sep 2018
Accepted Answer
More Answers (2)
Image Analyst
on 12 Sep 2018
0 votes
What I would do is to scan the signal with a filter to detect the large variations zones, like with movmax(), imdilate(), stdfilt() or similar. Then I'd threshold to find the "quiet" low signal areas. Then I'd find the centroid of those zones, assuming you want to split the signal in the middle of the quiet zones, with the regionprops() function (in the Image Processing Toolbox). I have done this exact thing for a nearly identical signal someone had a couple of years ago. Attach your data if you want any more help.
Stwiwi
on 13 Sep 2018
Categories
Find more on Parametric Spectral Estimation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
