How to find local minima nearby the local maxima
조회 수: 4 (최근 30일)
이전 댓글 표시
I have many wind speed time series. I have shown two representatve time series below (y-axis: wind speed, x-axis:time). I want to extract the time series segment corresponding to a major wind event that is characterized by a sudden increase in wind speed. In short, I want to extract the segments as shown in the figure below (red-green-red). How do I do that?
Things I have already tried:
1) islocalmax perfectly identifies the peak wind speed (green). When I use islocalmin, it identifies the orange dot as the local minimum :(
2) I also tried findchagepts command with various parameter inputs (like mean, rms, std, linear with max change points=2) but it is not able to correctly identify red-green-red
Is there any other way to find the max and the surrounding local min?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/251625/image.bmp)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/251626/image.bmp)
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!