With MATLAB® Support Package for Arduino® Hardware, you can use MATLAB to interactively communicate with an Arduino board. The package enables you to perform tasks such as:
Because MATLAB is a high level interpreted language, you can see results from I/O instructions immediately, without compiling. MATLAB includes thousands of built-in math, engineering, and plotting functions that you can use to quickly analyze and visualize data collected from your Arduino.
Learn more about Arduino programming with MATLAB and Simulink.
|Arduino Board||Shield Support||Comments|
|Arduino Due*||Y||DAC and CAN channels not currently supported.|
|Arduino Mega 2560*||Y|
|Arduino Mega ADK*||Y|
|N||Mini with ATmega168 not supported.|
|Arduino MKR1000||N||Supports Wi-Fi communication|
|Arduino Nano 3.1*||N||Nano 2.X not supported. Other Nano 3.X not tested but expected to work.|
|N||Pro with ATmega168 not supported.|
|Arduino Pro Mini
|N||Pro Mini with ATmega168 not supported.|
|Sparkfun Digital Sandbox||N|
|Adafruit Motor Shield V2||See Shield Support column for compatibility.|
Available on 64-bit Microsoft® Windows®, 64-bit Mac OS, and 64-bit Linux®.
This support package is available for R2014a and later releases. Learn more about Arduino support from MATLAB and Simulink across releases.
Related Hardware Support Views: MATLAB, Arduino, Consumer Electronics, Control Systems, I2C ∕ SPI, Internet of Things, MathWorks Supported, MATLAB Product Family, Mechatronics, Project-Based Learning, Serial, Support Package Installer Enabled, Test and Measurement
Support Package Installer installs this support package and all required third-party software. To start the installer, go to the MATLAB toolstrip and click Add-Ons > Get Hardware Support Packages. For more information, read the documentation.