raw_data = load('v_prop_data.txt');



data = zeros(4,3);

for i = 1:4

    data(i,1) = raw_data(5*i,1);

    data(i,2) = mean(raw_data(5*(i-1)+1:5*(i-1)+5,2));

    data(i,3) = sqrt(var(raw_data(5*(i-1)+1:5*(i-1)+5,2)));

end



errorbar(2*data(:,1),data(:,2),data(:,3),'o','markersize',10);

grid on;

xlabel('Twice the cable length in meters');

ylabel('Pulse separation, in ns');

title('Experiment to determine speed of propagation V_{prop}');

