How to find the first local max in a discrete signal?
5 views (last 30 days)
Show older comments
I have the .mat data in workspace.(time and magnitude) I wanted to find the first local max in signal and its related time . can anyone help me? thank you very much.
0 Comments
Accepted Answer
Adam
on 18 Aug 2014
If you have the signal processing toolbox you can use
findpeaks
If not then maybe something from the file exchange would work best. There are a huge number of different ones, but this seems to be the most popular and if you only want the first peak then you don't need anything too fancy:
0 Comments
More Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!