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

2 views (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 12 Jul 2020

More Answers (1)

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

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!