You are on page 1of 2

Post Lab Activity:

a) A*b

ans =

52
60
32
77
b) a+4

ans =

2 8 -1
c) b*a

ans =

-3 2 -4 5
18 -12 24 -30
0 0 0 0
27 -18 36 -45
d) a*b’ not possible due to order of multiply
e) A*a'
ans =

-12
-24
26
13
Activity 2: Difference between a^2, a.^2 & a*a where ‘a’ is any matrix
let a= 1 2 3
4 5 6
7 8 9

a^2 a.^2 a*a


Here the power simply (^2) Here the dot operator is used It indicates that matrix a
indicates the number of before the multiply operator multiply by itself
times matrix multiply by which means that each a*a= 30 36 42
itself element of the matrix will be 66 81 96
a^2= 30 36 42 squared. 102 126 150
66 81 96 a.^2= 1 4 9
102 126 150 16 25 36
49 64 81

You might also like