Counting total number of peaks in an array??
조회 수: 3 (최근 30일)
이전 댓글 표시
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
채택된 답변
Azzi Abdelmalek
2014년 8월 20일
편집: Azzi Abdelmalek
2014년 8월 20일
numel(findpeaks(your_signal))
%or
numel(gradient(your_signal)==0)
댓글 수: 3
faiz hazizi
2018년 4월 25일
sorry sir, may i know what is types of the signal for the numel(findpeaks(your_signal)) ? is it .wav file or what ?
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!