How can find the solution of this matrix system?

조회 수: 5 (최근 30일)
Johnny Scalera
Johnny Scalera 2020년 5월 28일
댓글: Ameer Hamza 2020년 5월 28일
Hi all,
I'm pretty new in Matlab. I would like to solve this matrix system
XAX' = B
where A is a symmetric positive definite matrix and B is a diagonal matrix with positive elements on the diagonal. How can find X?
Thanks,
Johnny

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 5월 28일
  댓글 수: 2
Johnny Scalera
Johnny Scalera 2020년 5월 28일
Hi Ameer,
thank you for your answer. Your suggestion is a numerical solution of the previous equation. I was looking for an analytical solution. For example, if A is an identity matrix I, then the system equation turns to be
XAX' = B;
XX' = B;
which can be solved with a Cholesky factorization of B
X = chol(B);
But what appens to the system, if A is a symmetric positive definite matrix and B a diagonal matrix? Such as
A = [a b; b c];
B = [d 0; 0 e];
Thanks,
Johnny
Ameer Hamza
Ameer Hamza 2020년 5월 28일
For analytical solutions, we usually use the symbolic toolbox. However, as far as I know, the symbolic engine still does not support solving the matrix equation. Even for the following specific cases, there is no solution
syms a b c d e f
A = [a b; b c];
B = [d 0; 0 e];
x = sym('x', size(A));
solve(x*A*x'==B, x)
solve(x*x'==B, x) % A = eye(2)
You may need to try some other symbolic engine (mathematics or maple maybe), but I haven't tried those for matrix equations, so I don't know for sure.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by