Is there a way to lock the cursor on the graph?

1 visualización (últimos 30 días)
azhao
azhao el 12 de Jul. de 2020
Respondida: Walter Roberson el 12 de Jul. de 2020
Hi all,
I'm trying to manually find the peaks of a graphed data set using my cursor. However, this method doesn't seem the most precise. Is there a way to lock it on my graph? Or is there a way to transform where I clicked on the graph to the closest data point?
For reference, I'm currently using ginput to identify potential datapoints. I attatched blow what the cursor currently looks like

Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Jul. de 2020

Más respuestas (1)

Takumi
Takumi el 12 de Jul. de 2020
How about using the findpeaks function instead?
  1 comentario
azhao
azhao el 12 de Jul. de 2020
I did that on another program, but not all of the peaks are found (and some other datapoints that are not peaks were labeled as peaks). I'm trying to make it more selective after conducting the findpeaks function.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by