正在加载图片...
11 ListenChar (2); 12 while KbCheck;end Wait until all keys are released. 13 This is a loop that flips around doing anything as long as KbCheck 14 reports back that a key is pressed on the keyboard.Means that the 15s program doesn't continue until all keys have been released. ●ListenChar(2):监听除了Octave/MATLAB命令窗口以 外的按键行为 。m文件运行过程中记录到的按键不会显示在命令窗口 。ListenChar(O):恢复MATLAB命令窗口的监听状态,从 而可以执行命令窗口输入的命令l ListenChar(2):监听除了Octave/MATLAB命令窗口以 外的按键行为 • m文件运行过程中记录到的按键不会显示在命令窗口 l ListenChar(0):恢复MATLAB命令窗口的监听状态,从 而可以执行命令窗口输入的命令
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有