how to solve solve matrix in Ax=b

Hello,
I have a system A=B(X^-1). Where A is nxm, B is nxm and X^-1 is mxm. All of them are complex and the matrix X is similar to below:
I want to save the equation in variable then solve it using "vpasolve" to find wanted unkwons.

댓글 수: 1

John D'Errico
John D'Errico 2021년 11월 13일
What d you want to compute? Is A known? Is B known? Is X known?
It seems you are telling us that X is an unknown 5x5 tridiagonal matrix of that form, with 13 unknown elements, and all you know is that X is tridiagonal?
If that is the case, then no, you cannot solve for X. You cannot use vpasolve to do so.
If A and B are known, then you can write this problem as effectively
X^-1 = inv(B)*A
then invert that result to find X. You would then have
X = inv(A)*B
If the resulting matrix X is tridiagonal then you have succeeded. In no respect do you ever need to use vpasolve. Simple linear algebra would succeed.
However, if the matrices A or B have less than full rank, then the above formula will fail. And we are not told anything about A or B.

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

답변 (1개)

Basem Bazuhair
Basem Bazuhair 2021년 11월 13일
편집: Basem Bazuhair 2021년 11월 13일

0 개 추천

A and B are not square matrix, so we can not find the inverse.
X is tridigonal matrix, and it has the below shape for 3x3 or 4x4.
I want to save the equation as below then solve it.
Syms XX [m,m]
Xinv = (det(XX)*adjoint(XX))
B(n,:)*Xinv(:,m) == A(n,m)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2021년 11월 13일

편집:

2021년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by