disp([char(10), 'Using Pre-Allocation:'])
pre_allo = zeros(10000,1); 
tic;
for I = 1:10000
   pre_allo(I) = rand(1); 
end
toc

disp([char(10), 'NOT Using Pre-Allocation:'])
tic;
for J = 1:10000
    not_pre_allo(J) = rand(1); 
end
toc



