How to view/plot decomposed matrix from decomposition function

12 vues (au cours des 30 derniers jours)
chrgrose
chrgrose le 20 Mar 2018
I'm using MATLAB's new decomposition function. For example, matrix L may be decomposed to dL as
dL = decomposition(L);
However, in the data for the variable dL, I cannot find the decomposed matrix itself. Why not? Where is it?

Réponses (1)

Christine Tobler
Christine Tobler le 20 Mar 2018
Hi,
I'm afraid the decomposition object does not provide access to the factors of the decomposition. This is because, depending on the input matrix L, a different decomposition is used (LU decomposition, QR decomposition, Cholesky decomposition, ...). These decompositions use different numbers and types of matrices (P*L*U, Q*R*P, R'*R, ...), and can be represented in different ways (e.g., P can be a permutation matrix or a permutation vector).
Because of this, the decomposition object only supports linear system solving with the original matrix. To access the factors of the decomposition, call the specific decomposition function (LU, QR, CHOL, ...), based on the type of the decomposition that was returned.

Catégories

En savoir plus sur Linear Algebra dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by