You are on page 1of 2

--> A=[2,0,-1;0,3,1;4,7,-2];

--> B=[3,1,-4;0,1,5;7,3,-8];

--> c=[2,3;-5,-4];

--> D=[3,0,-3;8,12,5];

A)

--> c*D

ans =

30. 36. 9.

-47. -48. -5.

B)

--> A'-B

ans =

-1. -1. 8.

0. 2. 2.

-8. -2. 6.

C)

--> c^3

ans =

8. -9.

15. 26.
D)

--> inv(A)

ans =

0.9285714 0.5 -0.2142857

-0.2857143 0. 0.1428571

0.8571429 1. -0.4285714

E)

--> inv(A*B)

ans =

2.0833333 0.4166667 -0.0833333

-3.0833333 -0.4166667 0.0833333

0.5595238 0.0833333 0.0119048

--> inv(B)*inv(A)

ans =

2.0833333 0.4166667 -0.0833333

-3.0833333 -0.4166667 0.0833333

0.5595238 0.0833333 0.0119048

Here, inv(AB) = inv(B)*inv(A)

You might also like