Developing a MATLAB/Simulink project with ARDUINO Mega2560

have a look at serial basics
http://forum.arduino.cc/index.php?topic=396450.0