The following two blocks can help you with the Simulink portion. You can also use a flow diagram approach as well with integrator blocks. In this case, make sure you put the initial conditions in the integrator blocks. In both approaches, the block on the left below is used.
Fig: 1
Fig: 2
Fig: 3
Fig: 4
Fig: 5
Fig: 6