Posted By:
23 Mar, 2013 2:29 pm PDT

finding trace, determinant, and inverse of a matrix

I have a matrix A = [1 2 3; 4 5 6; 6 8 9], I want to find trace, determinant and invrese of this matrix. How can I do it?

the output should be the following

  • Trace:15
  • inverse:
              -1 2 -1
               0 -3 2
               0.6667 1.3333 -1
  • Determinant:3
Attachment:None


To find the determinant, use command det

>>det(A)

 

for trace

>>trace(A)

 

for inverse

>>inv(A)

Please see the video for details

Was it useful?  




Please login to reply to this problem.