clear; clc;

N = 1e5;

tic
y = [];
for i = 1 : N
    y = [y, i];
end
toc

tic
w = zeros(1, N);
for i = 1 : N
    w(i) = i;
end
toc

tic
z = 1 : N;
toc