0

I want to separate into two matrices in Matlab like this:

$$ Q=Sq^{T}Sq $$ for example this matrix: $$ Q=\Biggm[\matrix{92.316 &31.78&240.417\cr 31.78 &194.66 &275.47\cr 240.417 &275.47 &938.99}\Biggm] $$

1 Answers1

1

You can the Cholesky factorization.

In matlab its very easy.

A= [92.316 31.78 240.417; 31.78  194.66 275.47; 240.417 275.47 938.99]
B=chol(A)
B'*B
NMech
  • 24,342
  • 3
  • 37
  • 75
  • chol in Matlab is only used for positive definite matrix. if the matrix is not positive definite, what can I do? – user212662 Mar 31 '21 at 10:05
  • You need to state that in your question. The example you had could be decomposed. To be honest, I've never had to use it for not positive definite, so you'd best update the answer and there are other people that can help you. – NMech Mar 31 '21 at 10:11