close;
A = [
    0  1  0  0  0  0  0  0  0  0;
   -2  0  1  0  0  0  0  0  0  0;
    0  0  0  1  0  0  0  0  0  0;
    1  0 -2  0  1  0  0  0  0  0;
    0  0  0  0  0  1  0  0  0  0;
    0  0  1  0 -2  0  1  0  0  0;
    0  0  0  0  0  0  0  1  0  0;
    0  0  0  0  1  0 -2  0  1  0;
    0  0  0  0  0  0  0  0  0  1;
    0  0  0  0  0  0  1  0 -1  0];

B = [0;0;0;0;0;0;0;0;0;1];

[t,y] = ode45(@buildingrhs,[0 100],[0 1 0 0 0 0 0 0 0 0]);

plot(t,y(:,1));
hold on;
plot(t,y(:,5),'g');
plot(t,y(:,9),'r');
figure(2);

k = place(A,B,[-.1 -.2 -.3 -.4 -.5 -.6 -.7 -.8 -.9 -1])
[t,y] = ode45(@buildingrhs,[0 100],[0 1 0 0 0 0 0 0 0 0]);

plot(t,y(:,1));
hold on;
plot(t,y(:,5),'g');
plot(t,y(:,9),'r');
figure(2);

    