n = 1;
k = 0;

for logn = 0 : 25

  x = rand ( n, 1 );
  y = rand ( n, 1 );

  tic;
  z = x' * y;
  t = toc;

  k = k + 1;
  xplot(k) = n;
  yplot(k) = t;
  n = n * 2;

end
plot ( xplot, yplot, 'r-*', 'LineWidth', 2, 'MarkerSize', 10 );

grid on
xlabel ( 'Number of vector entries' );
ylabel ( 'TicToc Time in Seconds' );
title ( 'Dot product time versus vector size' );


