Solved
Mass spring damper with k being a function of x
All,
I am trying to set up an odesolve function with a mass spring damper where my spring constant is a piecewise function associated with position. Sort of like a mass is being driven by a force while being acted upon by a damper until it suddenly hits a spring. Any Ideas?

