% Code adapted from https://www.mathworks.com/help/distcomp/decide-when-to-use-parfor.html
tic;
n = 10240;
n = 2E4;

%% Sequential Version

A = zeros(n);
for i = 1:n
    A(i,:) = (1:n) .* sin(i*2*pi/1024);
end

toc;