<< waitfor | Graphics functions | waterfall >> |
w = waitforbuttonpress() |
a scalar double value: 0 for mouse button pressed, 1 for key pressed.
w = waitforbuttonpress() pauses the execution of code until the user interacts with the current figure by either clicking a mouse button or pressing a key.
cf = gcf();
w = waitforbuttonpress;
axes;
Version | Description |
---|---|
1.7.0 | initial version |
Allan CORNET