Getting error by inverting a matrix
이전 댓글 표시
Hello,
I changed a little bit the parameters of my matrix J, but now I dont get the inverse of J.
Error message:
Error using mupadmex
Error in MuPAD command: Error: Exponent overflow. [poly]
Evaluating: rnormal
Error in sym/privUnaryOp (line 1700)
Csym = mupadmex(op,args{1}.s,varargin{:});
Error in sym/inv (line 1128)
X = privUnaryOp(A, 'symobj::inv');
Error in detofJac (line 10)
Ji=inv(J);
Could it be, that my matrix J now with the paramter changes is singular or is too complicated?
Thank you very much for you help.
댓글 수: 7
Star Strider
2012년 7월 18일
What is matrix ‘J’, how do you create it, and what do you intend to do with its inverse, ‘Ji’?
John Miller
2012년 7월 18일
John Miller
2012년 7월 18일
편집: John Miller
2012년 7월 18일
Qingyang
2012년 7월 18일
Yea... having something to the 2039279169394285/70368744177664 power is not good for computing.
Star Strider
2012년 7월 18일
편집: Star Strider
2012년 7월 18일
Actually it sort of does matter what you want to do with it, because MATLAB has the ability to do a direct matrix divide with ‘/’ and ‘\’, avoiding the need to invert it. That's the reason I asked.
Kye Taylor
2012년 7월 18일
If j is just two-by-two, why not compute the determinant by hand to see if it equals zero.
If your matrix is
A = [a,b;c,d],
then
det(A) = a*d-b*c
If det(A) ~= 0, the inverse is equal to
Ainv = [d,-b;-c,a] / det(A);
Star Strider
2012년 7월 18일
From the symbolic matrix posted earlier, when I tried to calculate its determinant, I got the same error that calculating the inverse generated, probably for the same reason.
I earlier suggested direct left-matrix-divide (\) and right-matrix-divide (/) to avoid the need to explicitly calculate the inverse, but that seems to have gone nowhere.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Common Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!