This tutorial demonstrates modeling a train system in Simulink. It begins by constructing the model graphically using basic physical laws and Newton's laws. Forces like friction and spring forces are modeled as signals and summed. Integrators generate the velocity and position signals from the accelerations. Numerical values are assigned and the model is run with a square wave input. Finally, MATLAB models are extracted from the Simulink model.