Here you will learn how to setup Matlab in order to communicate with Arduino. In order to program Arduino using either Matlab(native programming) or using Simulink(block programming) we need to install Matlab and Simulink hardware support packages for Arduino. Matlab provides hardware support packages for not only Arduino boards but also many others.
In my case, Matlab support package for Arduino hardware and simulink support package for Arduino hardware was already installed and so the hardware support package library view shows "Installed" in the following picture.
To install Matlab and Simulink Hardware Support Packages for Arduino boards follow the steps below:
1. Open Matlab, if not already open, click on the dropdown arrow icon on the Add-Ons on the Home tab. From there you can either click on the Get Add-Ons or the Get Hardware Support Packages. Here we choose Get Add-Ons so click there.