Counting total number of peaks in an array??

3 visualizaciones (últimos 30 días)
Sunil
Sunil el 20 de Ag. de 2014
Comentada: HARVIN RAJ el 16 de Feb. de 2021
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??

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 20 de Ag. de 2014
Editada: Azzi Abdelmalek el 20 de Ag. de 2014
numel(findpeaks(your_signal))
%or
numel(gradient(your_signal)==0)
  3 comentarios
faiz hazizi
faiz hazizi el 25 de Abr. de 2018
sorry sir, may i know what is types of the signal for the numel(findpeaks(your_signal)) ? is it .wav file or what ?
HARVIN RAJ
HARVIN RAJ el 16 de Feb. de 2021
Thank you !!!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by