Function Reference
— Function File: [x, y, buttons] = ginput (n)

Return which mouse buttons were pressed and keys were hit on the current figure. If n is defined, then wait for n mouse clicks before returning. If n is not defined, then ginput will loop until the return key is pressed.