How to create plots for special areas of an array?
이전 댓글 표시
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
PromoCodeBSJ
2018년 9월 12일
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
2018년 9월 12일
PromoCodeBSJ
2018년 9월 12일
Are you acquiring data from an external source?
Stwiwi
2018년 9월 17일
채택된 답변
추가 답변 (2개)
Image Analyst
2018년 9월 12일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Parametric Spectral Estimation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

