How to find the first local max in a discrete signal?

6 views (last 30 days)
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.

Accepted Answer

Adam
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:

More Answers (1)

vahid torabi
vahid torabi on 19 Aug 2014
I've attached my.mat data. My first max value is 0.004636 but this order gives me the first figure 0.000000003904964 !!! could you plz check it on your matlab??? thank you so much sir.
  2 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!