% 6.163 Lab 5 - High-speed Video

% Time space
time = 0:25:250;
samples = [175 162 147 131 115 97 78 57 37 14 -8];







samples = -(samples-175);




bigtime = 0:1:250;
quadpoly = polyfit(time, samples, 2);  % Degree of 2

disttofit = samples - polyval(quadpoly, time);







plot(time, samples, 'o', bigtime, polyval(quadpoly, bigtime));
