MATLAB Function Reference | Search  Help Desk |
keyboard | See Also |
Invoke the keyboard in an M-file
keyboard
keyboard
, when placed in an M-file, stops execution of the file and gives control to the keyboard. The special status is indicated by a K
appearing before the prompt. You can examine or change variables; all MATLAB commands are valid. This keyboard mode is useful for debugging your M-files.
To terminate the keyboard mode, type the command:
returnthen press the Return key.
dbstop
Set breakpoints in an M-file function
input
Request user input
quit
Terminate MATLAB
return
Terminate keyboard mode