SimlinkのS functionでArduinoを使う

この人はできる人
Arduinoに出力する方法:S-functionはInput

Arduinoからの出力を受け取る方法:S-functionはOutput

これがソースっぽい
http://jp.mathworks.com/matlabcentral/fileexchange/41027-adlx345-i2c-driver-for-arduino-mega