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.
Mikhail (2019). Embedded Coder Arduino Servo Write Block (https://www.mathworks.com/matlabcentral/fileexchange/35356-embedded-coder-arduino-servo-write-block), MATLAB Central File Exchange. Retrieved .
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