MATLAB Answers

How set minimum peak height (threshold of peak height)

81 views (last 30 days)
Kanakaiah Jakkula
Kanakaiah Jakkula on 30 Jul 2015
Commented: Kanakaiah Jakkula on 30 Jul 2015
I have curve with multiple peaks, but I want to set minimum peak height (for example to consider peak only if the peak height >1) and get peaks location and peaks height. I used "findpeaks", but I can not be able to set the peak height threshold. Please kindly help me. Many thanks in advance.
  1 Comment
Muthu Annamalai
Muthu Annamalai on 30 Jul 2015
Can you share a code snippet that we can improve upon?

Sign in to comment.

Answers (1)

Muthu Annamalai
Muthu Annamalai on 30 Jul 2015
Turns out in your case there is an option called MinPeakHeight in the findpeaks documentation.
Check this out, MinPeakHeight option

Community Treasure Hunt

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

Start Hunting!

Translated by