%------------------------------------------------------------------------ % NAME: qp_Seinv % % Calculates and saves the inverse of the Se matrix. % % FORMAT: qp_Se( Q ) % % IN: Q Setting structure. % OUT: - %------------------------------------------------------------------------ % HISTORY: 2001.10.13 Created by Patrick Eriksson function qp_Seinv( Q ) out(1,1); out(1,'Calculating the inverse of Se.'); load( [Q.OUT,'.h'], '-mat' ); load( [Q.OUT,'.hd'], '-mat' ); Se = qp_Se( Q, H, Hd, 2 ); %=== Invert Seinv = inv( Se ); %=== Save save( [Q.OUT,'.seinv'], 'Seinv' ); out(1,-1);