get_clicks

get_clicks(varargin)

GET_CLICKS Capture mouse click coordinates on a figure axis

Usage:

pos = get_clicks() pos = get_clicks(num_clicks) pos = get_clicks(h_ax) pos = get_clicks(h_ax, num_clicks)

Inputs:

h_ax : axes handle (default: gca) num_clicks : integer - number of clicks to capture (default: 1)

Outputs:

pos : num_clicks x 2 double - (x, y) coordinates per click

Example

pos = get_clicks(3);

See also: ginput, waitforbuttonpress, iptPointerManager

∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿