There are lot of reference about Arduino Support from MATLAB thatenables to use MATLAB to interact with Arduino Board. You may installMATLAB Support Package for Arduino Hardwarefrom Add-onexplorer. Also, following link contains many resources aroundthe same.
Similarly,there is Arduino Support from Simulink which you can use by installingSimulinkSupport Package for Arduino Hardwarefrom Add-on explorer. Here you can develop and simulate the algorithms in Simulink that run standalone on Arduino. Forresourcesto get started you may follow below mentioned link.