The simplest way I see is to use a microcontroller with USB and then write MATLAB code to interface to itthe microcontroller.
Or the microcontroller's UART + an USB/UART IC and then use MATLAB's serial port support.
Then you can drive pretty much anything connected to the microcontroller.