Starting with $$m\ddot x + c\dot x +kx = |\sin(t)|, $$
I get $$X(s) = \frac{1+e^{-\pi s}}{(s^2+1)(1-e^{-\pi s})(ms^2+cs+k)}.$$
When trying to use inverse Laplace tranform in MATLAB ilaplace(), the results is both complex and contains the floor-function, so I can't plot it.
How do I solve this?
Note that $m$, $c$ and $k$ are known constants.
I have also tried using dsolve, but this doesn't work either. Is it possible to use dsolve to solve this equation.