Updated 14 Sep 2020
MYGINPUT Graphical input from mouse with custum cursor pointer.
[X,Y] = MYGINPUT(N) gets N points from the current axes and returns the X- and Y-coordinates in length N vectors X and Y.
[X,Y] = MYGINPUT(N, POINTER) also specifies the cursor pointer, e.g. 'crosshair', 'arrow', 'circle' etc. See "Specifying the Figure Pointer" in Matlab's documentation to see the list of available pointers.
MYGINPUT is strictly equivalent to Matlab's original GINPUT, except that a second argument specifies the cursor pointer instead of the default 'fullcrosshair' pointer.
[x,y] = myginput(1,'crosshair');
MYGINPUT is copied from Matlab's GINPUT rev. 188.8.131.52.
Frederic Moisy (2023). MYGINPUT (https://www.mathworks.com/matlabcentral/fileexchange/12770-myginput), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: gdist, Perceptron InterActive , clickfit_OH for curve fitting by eye/hand
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.