Use the Signal Processing Toolbox findpeaks function (introduced in R2007b) or the MATLAB islocalmax function (introduced in R2017b).
find local maxima of a signal
8 次查看(过去 30 天)
显示 更早的评论
Hi!
I need to find all maximas of a signal and their position. I did this code, but it only give me the absolute maxima of all the signal. How can I have all the maximas?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/568139/image.png)
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!