clear
N = 100000;

tic;
for n = 1:N
  x(n) = sin(n);
endfor
timer1 = toc

tic;
x = zeros(N,1);
for n = 1:N
  x(n) = sin(n);
endfor
timer2 = toc

tic;
x = sin([1:N]);
timer3 = toc
