Counting total number of peaks in an array??
16 views (last 30 days)
Show older comments
I have attached a figure in which i have peaks at certain locations of certain duration.. I need the total number of peaks in the figure. For example, the number of peaks in this figure is 3. Can someone help me??
0 Comments
Accepted Answer
Azzi Abdelmalek
on 20 Aug 2014
Edited: Azzi Abdelmalek
on 20 Aug 2014
numel(findpeaks(your_signal))
%or
numel(gradient(your_signal)==0)
3 Comments
faiz hazizi
on 25 Apr 2018
sorry sir, may i know what is types of the signal for the numel(findpeaks(your_signal)) ? is it .wav file or what ?
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!