Simulink is a time domain platform in which all inputs can be defined as time series. You can manipulate the input through integrator, derivative, gain, sum, etc. blocks and put the flow in a closed-loop to solve the equation. Attached screenshot is a simple Simulink model of a multi-story building subjected to an earthquake. In this specific case, all multipliers (M, C, and K) are square matrices and the variable (u) is a vector denoting lateral displacement of each story during the earthquake. In this example the input is Ug which is ground acceleration and absolutely irregular. This specific example is a linear problem but you can easily use Simulink to address nonlinear problems as well.