% Script to simulate spring motion
close all;

x_0 = 4; % initial pos
v_0 = 10;  % initial vel

y_0 = [x_0; v_0];  % package pos, vel in new y vector form

[t, y] = ode45(@springDE, [0, 10], y_0);
<<<<<<< HEAD
plot(t, y, '.');
=======
plot(t, y);
legend({'pos', 'vel'}, 'Location', 'Southwest');
>>>>>>> 62e655d6f52ea889ff0c35f9ec3d9e3e53f2175e
