MATLAB Answers

Findpeaks - excluding peaks within certain x axis values

5 views (last 30 days)
I am using findpeaks (result seen below), however I would like to ignore the first peak within x axis 0 - 10. What is the best way to go about this?
Cheers

  0 Comments

Sign in to comment.

Accepted Answer

Sean de Wolski
Sean de Wolski on 19 Aug 2019
findpeaks(y(x>10))
?

  6 Comments

Show 3 older comments
James Morris
James Morris on 21 Aug 2019
Actually this doesn't seem to be working for me.
values i want to findpeaks of are stored in the variable siw. I've tried:
findpeaks(y(x>10))
findpeaks(siw(x>10))
findpeaks(siw,(x>10))
None have worked. Any advice?
Sean de Wolski
Sean de Wolski on 21 Aug 2019
What does "not working" mean? Are you getting errors, wrong results? Post the MAT file and repro code. The below one looks right to me.
findpeaks(siw(x>10))

Sign in to comment.

More Answers (0)

Sign in to answer this question.