clear; clc;

N = 1e5;

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

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

tic
data3 = 1 : N;
toc
