This submission is basically a patch for official Embedded Coder Support Package for Arduino found here: http://www.mathworks.com/matlabcentral/fileexchange/30277-embedded-coder-support-package-for-arduino
This patch adds in the Servo Write block, which can be used to generate code and control your Servo drive attached to Arduino.
This block has been tested with Arduino Nano, Motor Shield v3 and Hitec HS-422 servo.
You need to install the official Embedded Coder Support Package for Arduino first and then apply this patch by overwriting original files from that target support.
THIS SUBMISSION IS NOT RELEVANT ANY LONGER.
I see that people are still downloading this. You should not use this anymore, since the latest Embedded Coder Support Package for Arduino already contains the Servo block.
Changed references to Embedded Coder Support Package for Arduino
Changed name of package to Embedded Coder to better depict what's it used for.
Inspired by: Embedded Coder Target for Arduino
Create scripts with code, output, and formatted text in a single executable document.