Find connecting global maxima of a given dataset.

3 visualizaciones (últimos 30 días)
Nico
Nico el 13 de Abr. de 2022
Comentada: Nico el 13 de Abr. de 2022
Hi all,
is there any build-in function or toolbox to find the connecting global maxima of a given dataset consiting of xy-values? The maxima should be determined by searching for the first maximum of the dataset and than "going along the x-axis" and determine all following global maxima while neglecting the global maxima found before. From what I understand the "islocalmax" function cannot be manipulated to do so. Do I have to create my own code for this using the max function? What are your recommendations? Exemplarily I illustrated my needs in the attached figure. I case of any further question do not hesitate to ask me :)
Many thanks in advance!
Cheers,
Nico
  2 comentarios
KSSV
KSSV el 13 de Abr. de 2022
You can use max right?
Nico
Nico el 13 de Abr. de 2022
Thanks for your answert! Yes, sure! But since I am not only looking for one maximum rather than for the connecting maxima (as illustrated in the attached figure by the red line) one has to write a code for this, isn't it? Or is there a simpler solution? I am only a sporadic MATLAB user and writing a code for this will be quite difficult for me.

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 13 de Abr. de 2022
Have a look on findpeaks and envelope.
  1 comentario
Nico
Nico el 13 de Abr. de 2022
I never worked with these functions before. Could you please specfiy your answer? That would be great! Thanks a lot!

Iniciar sesión para comentar.

Categorías

Más información sobre Parametric Spectral Estimation en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by