MATLAB Answers

0

Findpeaks - excluding peaks within certain x axis values

Asked by James Morris on 19 Aug 2019
Latest activity Commented on by Sean de Wolski
on 21 Aug 2019 at 11:56
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.

1 Answer

Answer by Sean de Wolski
on 19 Aug 2019
 Accepted Answer

findpeaks(y(x>10))
?

  6 Comments

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?
I am using matlab2015
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.