I have the signal in the plot which is zoomed in a time window to show the peaks. I want to find not only the maxima (I did this using
) but also it's consecutive minimas. Meaning, the first 5 maximas and the two minimas around each first 5 maxima.
I am not able to find minimas. I tried inverting the signal and using findpeaks(), but still merging it with the data of maximas in order is something that I am still not able to do. Can I find maximas and minimas using diff() or derivative rise and fall and store the positions in sequence in one flow?
1 Comment
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/653863-finding-first-5-maxima-and-its-consecutive-minima#comment_1215625
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/653863-finding-first-5-maxima-and-its-consecutive-minima#comment_1215625
Sign in to comment.