How to invert a 72x72 symbolic matrix?

Hi,
Let's say I have a matrix A which have the size 72x72 and contatins only symbolic expressions. I want to solve the problem Ax=b, where b is a 72x1 vector with symbolic expressions. Is there some other way solve this problem than x = inv(A)*b or x=A\b, since these two types of solutions will take forever because of the symbolic matrix A?
Regards Hassan

답변 (1개)

Wayne King
Wayne King 2013년 12월 24일
편집: Wayne King 2013년 12월 24일

0 개 추천

What is the performance of linsolve() for symbolic expressions? I haven't tried it for such a big matrix, but have you tried that?
syms a x y z;
A = [cos(a) 0 sin(a); 0 1 0; -sin(a) 0 cos(a)];
b = [x; y; z];
[X,R] = linsolve(A,b)

댓글 수: 1

Hassan
Hassan 2013년 12월 24일
Thank you for the quick answer Wayne.
I reduced my A matrix to 6x6 just to try this function and it still takes a while to get the solution. My A matrix is a bit more complicated which ofcourse affects the computation time. However, I will give it a try for the full scale problem and hopefully I will get a solution at the end of this day :)
Regards Hassan

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

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2013년 12월 24일

댓글:

2013년 12월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by