How to place errorbars on a grouped bar graph in MATLAB

Well, although MATLAB is not great for plotting, a few tricks can make it drawing easier. We often use errorbar function to plot errorbar but it’s impossible for Matlab to put error bars on a grouped bar graph. Matlab simply gives a shit if you command it straightforwardly. For example: The error bars are located… Continue reading How to place errorbars on a grouped bar graph in MATLAB

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