Incorporating MATLAB Algorithms into a Simulink Model