How to view/plot decomposed matrix from decomposition function
14 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Christine Tobler
2018-3-20
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!