Deploy Functions Using MATLAB Function Block
Use functions in a MATLAB Function block to generate code and deploy to Arduino
Hardware
You can use the functions in Read and Write Data from Arduino Pins in a MATLAB Function block with the Simulink® Support Package for Arduino® Hardware to generate the code that can be deployed on Arduino Hardware.

