How to click points in a figure to generate a function/set of data?

4 views (last 30 days)
I remember there being a function or plugin in MATLAB that allowed the user to click on points in a figure to generate a set of datapoints that MATLAB may or may not have converted into an x-y equation. The user interacted with the figure through a GUI. It has been a long time since I used it, but I am now in need of it and can't find it. I was wondering if there was anyone that knew of this plugin/function and, if so, could direct me to where to find it. Thanks!

Answers (1)

Rik
Rik on 23 Feb 2021
Edited: Rik on 23 Feb 2021
I would suggest getpts, although there is an alternative that gives visual feedback: ginput.

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!