Tips to get USB keyboard index in Matlab while using KbQueueCheck

A keyboard index is necessary when using KbQueueCheck instead of KbCheck. So how to get a valid keyboard index of your desired USB keyboard? Credit: Jacob M. Paul in our lab. [Linux enviroment] 1. Check if the keyboard was recognized by the system. Steps: Plug in your USB keyboard -> Open Terminal -> Input “lsusb“… Continue reading Tips to get USB keyboard index in Matlab while using KbQueueCheck

Sublime Text 2 with MATLAB Syntax – Windows

Sublime text does not recognize .m file from MATLAB after installation and show it in Object-c syntax. How to fix it? Here is the solution: Select Preferences -> Browse Packages… to open your Packages folder, and open the Objective-C subfolder. Open Objective-C.tmLanguage in Sublime as an XML file (open it in sublime), and comment out (or… Continue reading Sublime Text 2 with MATLAB Syntax – Windows