% Alt 1
clear all

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

dt=0.01;
N=1000000000;

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