L_0_1 =[0.00032330958003  -0.00000000000000  -0.00215103540305   0.00000000000001  -0.20683896292476
  -0.00000000011757  -0.00109283378432   0.00000000000008   0.04500241256490  -0.00000000000007
  -0.00000000012779   0.00008869236942   0.00000000000009  -0.00399037926394  -0.00000000000008];

L_0_2 = [-0.00000000000008   0.00001111969031   0.00000362222556   0.00000246761266  -0.01140364128221
   0.09517795707703  -0.00000316202476   0.00000970693701   0.00000000000843  -0.00923656012577
  -0.00279599292871   0.00000024386552  -0.00000074863690   0.00000000000916   0.00071954015518];

L_0_3 = [0.01091766421302  -0.06876457383133  -0.00181054166992
   0.03014081636540   0.00478541918122   0.05817618965357
  -0.00304933636983  -0.00048413929483  -0.00453200332211];

%LQ-straffmatris för tant- och racemod. Linjärisering kring mach 0.4 samt
%2000 meters höjd.
L_0 = [L_0_1 L_0_2 L_0_3];

referensutokning = zeros(13,3);
referensutokning(4,1) = 1;
referensutokning(5,2) = 1;
referensutokning(6,3) = 1;
% 
referensutokning_auto = zeros(13,6);
referensutokning_auto(1,1) = 1;
referensutokning_auto(9,2) = 1;
referensutokning_auto(10,3) = 1;
referensutokning_auto(11,4) = 1;
referensutokning_auto(12,5) = 1;
referensutokning_auto(13,6) = 1;