keyboard
Give control to keyboard
Syntax
Description
keyboard
pauses execution of a running
program and gives control to the keyboard. Place the keyboard
function
in a program at the location where you want MATLAB® to pause.
When the program pauses, the prompt in the Command Window changes
to K>>
, indicating that MATLAB is in
debug mode. You then can view or change the values of variables to
see if the new values produce expected results.
The keyboard
function is useful for debugging
your functions.
Examples
Tips
Version History
Introduced before R2006a