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

4 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Walter Roberson
Walter Roberson il 12 Lug 2020

Più risposte (1)

Takumi
Takumi il 12 Lug 2020
How about using the findpeaks function instead?
  1 Commento
azhao
azhao il 12 Lug 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.

Accedi per commentare.

Categorie

Scopri di più su Data Exploration in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by