Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
azhao
azhao le 12 Juil 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

Réponse acceptée

Walter Roberson
Walter Roberson le 12 Juil 2020

Plus de réponses (1)

Takumi
Takumi le 12 Juil 2020
How about using the findpeaks function instead?
  1 commentaire
azhao
azhao le 12 Juil 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.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by