https://technicalsource9.medium.com/how-can-i-solve-the-matrix-riccati-differential-equation-within-matlab-54da7b140ae7