% Alt 2
clear all

tic
A=-10; B=0.5;
x=0; u=1;

dt=0.01;
N=1000000000;
N=1000000000;

X=zeros(N,1);
X(1)=x;
for i=1:N
    X(i+1)=X(i)+dt*(A*X(i)+B*u);
end
toc
