clear all;

L=5; U=5;
figure(1);
axis([-L U -L U]);
axis manual;
A=[-L U; 0 0];
B=[0 0; -L U];
plot(A(1,:),A(2,:));
hold on;
plot(B(1,:),B(2,:));
grid;

A=[0.5,-0.6;0.75,1.1]       %  Matrisen A fra eksempel


x=ones(2,1)+rand(2,1);
plot(x(1),x(2),'ob','MarkerSize',10);

for k=1:80

  plot(x(1),x(2),'*r');
  hold on;pause(0.2)

  x=A*x;

end