Dan Seal, MathWorks
You can interact with your Arduino® device in MATLAB®, and program algorithms onto your device from Simulink®. However, before you can do so, you need to download and install the MATLAB and Simulink support packages for Arduino. This can be done from the MATLAB desktop. You can also use the same set of steps to download support for other hardware devices like webcams or Raspberry Pi™ computers.