필터 지우기
필터 지우기

Can anyone please tell me why I am getting this error?

조회 수: 1 (최근 30일)
Segun
Segun 2014년 8월 27일
댓글: Star Strider 2014년 8월 29일
A =
2 4 1
3 1 4
5 6 0
>> A=finverse(A) Undefined function 'finverse' for input arguments of type 'double'.
>>

답변 (3개)

Star Strider
Star Strider 2014년 8월 27일
편집: Star Strider 2014년 8월 27일
The finverse function is in the Symbolic Math Toolbox, and creates the inverse of a symbolic function.
You likely want the inv function for your matrix. If you are doing matrix calculations, it is preferable to use the mldivide function, or more directly the (\) (backslant) operator (if possible in your calculations).
  댓글 수: 3
Christopher Creutzig
Christopher Creutzig 2014년 8월 29일
Your sequence of commands does not create a symbolic matrix. The assignment to A discards the previous symbolic variable A.
A = sym([2 4 1
3 1 4
5 6 0])
inv(A)
ans =
[ -8/15, 2/15, 1/3]
[ 4/9, -1/9, -1/9]
[ 13/45, 8/45, -2/9]
Star Strider
Star Strider 2014년 8월 29일
@Christopher — Noted. You’re correct.

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


Image Analyst
Image Analyst 2014년 8월 27일
finverse() is not in base MATLAB. Do you think it is suppose to be in one of your toolboxes? If so, which one? List in in the products drops down list below this comment. Or is it a custom function you wrote but did not include here?
  댓글 수: 2
Iain
Iain 2014년 8월 27일
Or, is it just a typo?
Andrew Reibold
Andrew Reibold 2014년 8월 27일
Symbolic Math Toolbox

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


Segun
Segun 2014년 8월 27일
Thanks Star Strider & image analyst. I am just interested in creating the inverse of the matrix. The Symbolic toolbox is included. I checked using vers cmd.

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by