Cholesky factorization on symbolic matrix

조회 수: 5 (최근 30일)
Chien-Chia Huang
Chien-Chia Huang 2011년 5월 16일
Hi all,
I want to use Cholesky factorization on some symbolic matrices but I am still working with R2007b, quite an old version.
I met error message when I did it.
Is there any other way out to do this in R2007b?
--
I do have an authorized R2011a but the toolboxes are not included. (I have no idea why my school did not purchase the full version.)
So guess I cannot, for this time being, work with R2011a unless I know how to transfer all the toolboxes from my current version to the latest one.
Could anyone tell me how to do this? (Just copy all the files?)
Thanks in advance.

채택된 답변

Kai Gehrs
Kai Gehrs 2011년 5월 17일
If you want to do the computation inside of MuPAD, you can use
n:= 4:
A:= matrix([[c.i.j $ i = 1..n] $ j = 1..n]):
linalg::factorCholesky(A,NoCheck)
The option 'NoCheck' means that it is not checked whether A is symmetric and positive definite.
  댓글 수: 1
Chien-Chia Huang
Chien-Chia Huang 2011년 5월 17일
Thanks, Kai. But MuPad is contained in new Matlab version. I did not found it in my "antique" R2007b.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 5월 16일
Toolboxes cannot be transferred between versions.
  댓글 수: 5
Chien-Chia Huang
Chien-Chia Huang 2011년 5월 17일
Thanks Walter. I did exactly what you say in your comment and got what I wanted.
Also to Andrei, I have tried and it works. But the answer is not as "pretty" as that in Maple. What should "C" be? what I input is C = [1 a b c;a 1 d e;b d 1 f;c e f 1].
Walter Roberson
Walter Roberson 2011년 5월 17일
I would suggest
maple('Chol := C->LinearAlgebra[LUDecomposition](Matrix(C,form=symmetric),method=Cholesky)':);
syms a b c d e f
C = [1 a b c;a 1 d e;b d 1 f;c e f 1];
maple('Chol', C);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by