function xdot = buildingrhs(t,x)
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];
K = [ 218.3477   20.3315 -261.2580  -45.1412  155.1531   48.6205  -45.8227  -25.8500    4.2000    5.5000];

xdot = (A-B*K)*x;

end