% Simple for loop structure to compute an array
%
% input argument is the number of times the loop is
% executed
function loop_test = loop_function(trials)
tic
for i=1:1:trials;
	d(i) = sin(i);
end
t=toc

loop_test = t;
