function loopparallel()
N = 1024;
a = zeros(N,1);

% Time consuming loop
tic
parfor (i = 1:N)
    a(i) = sin(i*2*pi/1024);
    % Other computations;
end
toc
%
plot(a);
figure(1)
end