LAB 2 - Your Name - MAT 275
Exercise 1
A=[-7,-7,-4;-7,-6,-4;-8,-6,-6];
B=[-3,7,-8;17,-5,18;11,-4,11];
b=[14;-1;-10];
c=[2,5,-2];
d=[-1;0;-3];
Part (a)
A*B
ans = 3×3
-142 2 -114
-125 -3 -96
-144 -2 -110
B*A
ans = 3×3
36 27 32
-228 -197 -156
-137 -119 -94
c*A
ans = 1×3
-33 -32 -16
B*d
ans = 3×1
27
-71
-44
Part (b)
C=[A;B]
C = 6×3
-7 -7 -4
-7 -6 -4
-8 -6 -6
-3 7 -8
17 -5 18
11 -4 11
D=[B,d]
D = 3×4
-3 7 -8 -1
17 -5 18 0
11 -4 11 -3
1
Part (c)
NOTE: Use the 'backslash' command, NOT the division operator '/' .Delete these notes before submission.
x=A\b
x = 3×1
14.6000
-15.0000
-2.8000
Part (d)