To read data from a USB, you can use the serial port object to initialize communication between device and MATLAB, followed by using fscanf or fread to acquire data from USB connected device. “fread” is ideal for binary data.
Note that for data acquisition, consider pre-allocating memory, otherwise it could slow down the read operation as an assignment like:
s = serial('COM1');
A = fscanf(s);
would reallocate memory for A each time fscanf is called. Specify appropriate the baud rate for the serial object.
Hope this helps.