这个函数用于把程序的控制权返回给一个以>K开始的命令行,Matlab里面的debug功能就是用这个实现的。
非常适合那种中间需要看看观察一下运行状况的程序
p.s.ref里面提到的几个函数,也对于调试很有帮助,比如dbstop系的函数,就是用来设置breakpoint的。
MATLAB Function Reference |
Provide feedback about this page |
keyboard - Input from keyboard
Syntax
keyboard
Description
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
return
then press the Return key.
See Also
dbstop, input, quit, pause, return
Provide feedback about this page |
javarmpath | kron |
0 comments:
发表评论