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

4 Ansichten (letzte 30 Tage)
azhao
azhao am 12 Jul. 2020
Beantwortet: Walter Roberson am 12 Jul. 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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Jul. 2020

Weitere Antworten (1)

Takumi
Takumi am 12 Jul. 2020
How about using the findpeaks function instead?
  1 Kommentar
azhao
azhao am 12 Jul. 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Exploration finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by