% Demo1
% Original script
% Shows the time to calculate of 30.000 values
% using a for-loop 
clear
tic
tmax=30000;
for t=1:tmax
    y(t)=cos(t);
end
toc