Riccati:

-------------------------------------------------------------------------------
   Solves the matrix Riccati equation in the form

   g = [a   r ]
       [q  -a']

-------------------------------------------------------------------------------
   Form:
   [sinf, rr] = Riccati( g )
-------------------------------------------------------------------------------

   ------
   Inputs
   ------
   g                  Input matrix 

   -------
   Outputs
   -------
   sinf               Steady-state solution
   rr                 Repeated roots 1 = repeated roots

-------------------------------------------------------------------------------

Children:

Common: Math/Odd