Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

"CHOL" function inconsistent results?

2 views (last 30 days)
Mohamed Selim
Mohamed Selim on 9 Oct 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi,
I'm trying to perform Cholesky decomposition for Matrix 'A' (size 3652x3652), when I use:
isequal(A,A')
I get '1' as answer, so it is symmetric.
When I use:
[L,p] = chol(A)
I get p = 0 , so it is Positive Definite, & 'L' is Upper triangle matrix (size 3652x3652),
But when I use:
[L,p] = chol(A, 'lower')
I get p = 190 !! , and 'L' is Lower triangle matrix (size 189x189) !!,
I am confused, is 'A' Positive definite or not??
I know that chol(A, 'lower') will analyze the lower triangle of 'A', and chol(A, 'upper') will analyze the upper triangle of 'A',
but since 'A' is Symmetric so the upper triangle is the same as the lower triangle (Am I right?).
Any suggestions??
Thanks

Answers (0)

This question is closed.

Products

Community Treasure Hunt

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

Start Hunting!