1
Write three matlab functions that solve the general
spring-mass IVP
We will consider the generalized linear system without damping which has an invertible mass
matrix:
M x + Kx = 0
a
(1)
[tarray xarray] = SpringmassNUM(tspan,x0,v0,K,M)
This can use ODE4