close all; clear; clc


array_size = 1000;

tic
array = zeros(array_size, array_size);
for i = 1:array_size
    for j = 1:array_size
        array(i,j) = i * j;
    end
end
toc

clear array

tic
[row, col] = meshgrid(1:array_size);
array = row .* col;
toc

clear array;

tic
row = 1:array_size;
array = row' * row;
toc

