How do I segment a repetitive pattern?
Show older comments

Figure 1
Hi, Is there a way where I can segment the cycle in an efficient way? From Figure 1, there are 8 reptitive cycles based on the 8 tall peaks and I would like to segment the 8 cycles and put each cycle in a matrix. I've tried using findpeaks function in Matlab with different values for the parameters eg. MinPeakProminence, MinPeakDistance etc. but there will always be unwanted peaks. The unwanted peaks are usually the peaks pointed downwards.
So in the end, the final product of the cycle segmented would look something similar to the picture below. Thank you.

Answers (1)
KSSV
on 9 Nov 2017
You fix a _y_ value at which cycle get's over.....use _find_ to get the indices. With the help of these indices you should be able to get your cycles.
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
