Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 simulink 中使用键盘而不是操纵杆或 spacemouse 块?
谢谢
我终于找到了解决方案。
http://www.mathworks.com/matlabcentral/fileexchange/24216-simulink-keyboard-input-v2
在“Level-2 M-file S-Function”块中使用此功能。第一个输出给出最后按下的键。如果按下某个键,则第二个输出为 1,否则为 0。