How can calculate the matrix inverse

2 views (last 30 days)
How can calculate R in the following equation in MATLAB
C=D*R*D' % C, D, D' are square matrices, D' is the transpose of D

Accepted Answer

Walter Roberson
Walter Roberson on 19 Jun 2021
C=D*R*D'
implies that
C * inv(D') = D * R
inv(D) * C * inv(D') = R
so
R = D\C/D';
  4 Comments
John D'Errico
John D'Errico on 19 Jun 2021
Edited: John D'Errico on 19 Jun 2021
As importantly, what is the rank of D? Is D numerically singular? If it is, then unless C is ALSO singular, and has the same rank as D, AND C has some special properties, then no solution can exist.

Sign in to comment.

More Answers (0)

Categories

Find more on Sparse Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!