MATLAB Functions | Help Desk |
waitforbuttonpress
Wait for key or mouse button pressk = waitforbuttonpress
k = waitforbuttonpress
blocks the caller's execution stream until waitforbuttonpress
detects a mouse button or key press while the cursor is over a Figure window. The function returns 0
if it detects a mouse button press or 1
if it detects a key press. Additional information about the event that resumes execution is available through the Figure's CurrentCharacter
, SelectionType
, and CurrentPoint
properties.
dragrect
, figure
, gcf
, ginput
, rbbox
, waitfor