Teaching Mechatronics Using MATLAB and Simulink