functionwrapper_calcK

Computes the feedback matrix from the assigned eigenvalues, closed loop eigenvectors and the B matrix factorization

Inputs

TypeNameDefaultDescription
Real[:,size(A, 1)]AReal square system matrix
Real[size(A, 1),:]U0U0 and Z are the decompositions of B
Real[size(U0, 2),size(U0, 2)]ZZ and U0 are the decompositions of B
Real[size(A, 1)]gamma_realEigenvalue vector, real part
Real[size(A, 1)]gamma_imagEigenvalue vector, imaginary part
Real[n,n]X_realEigenvectors, real part
Real[n,n]X_imagEigenvectors, imaginary part
IntegernreNumber of real eigenvalues

Outputs

TypeNameDefaultDescription
Real[size(U0, 2),size(A, 1)]KFeedback matrix