I have two arrays that I plotted, one as the x and the other as the y. Now these arrays are not a function of each other but I need to find 4 peaks on the plot. I can see the peaks so I could easily come up with the four intervals, I just dont know how to write this out. Any help?

3 comentarios

Image Analyst
Image Analyst el 15 de Oct. de 2020
You forgot to attach your data and script for reading and plotting the data. In the meantime, try findpeaks() if you have the Signal Processing Toolbox.
Billy Dipre
Billy Dipre el 15 de Oct. de 2020
Billy Dipre
Billy Dipre el 15 de Oct. de 2020
Sorry about that. But I just want to find those 4 peaks for the deuterium plot and the hydrogen plot.

Iniciar sesión para comentar.

Respuestas (1)

Star Strider
Star Strider el 15 de Oct. de 2020

1 voto

The islocalmax function could be helpful here. The Signal Processing Toolbox has findpeaks.

Preguntada:

el 15 de Oct. de 2020

Respondida:

el 15 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by