x = [1.2, 6.3, 7.8, 3.6];

sum = 0;
for entry = x
  sum = sum + entry;
 end
x_mean = sum / length(x);
