n = 1;
k = 0;

for logn = 0 : 30

  a = rand ( n, 1 );

  tic;
  a = sort ( a );
  t = toc;

  k = k + 1;
  x(k) = n;
  y(k) = t;
  n = n * 2;

end
plot ( x, y, 'r-*', 'LineWidth', 2, 'MarkerSize', 10 );

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


