Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use the following arrays to do problem 3. a = 1 3 5 9 g 1 1 1 0 0 10 3 b = 1 1 g

ID: 3689108 • Letter: U

Question

Use the following arrays to do problem 3. a = 1 3 5 9 g 1 1 1 0 0 10 3 b = 1 1 g c = 10 11 12 9 (3a) Create a 3times1 array d that is the sum of b and the second column of a. The rules for matrix addition are here. (3b) Create a 1 times 4 array f that is the sum of c and the first row of a. (3c) Create a 3 times 4 array g, where the first element of b is added to every element in the first row of a, the second element of b is added to every element in the second row of a, and the third element of b is added to every element in the third row of a. (3d) Create a 1 times 7 array h, where the elements of b make up the first three elements of h and the elements of c make up the last four elements of h.

Explanation / Answer

a = [1 3 5 9;
9 1 1 1;
0 0 10 3];
b = [1; 1; 9];
c = [10 11 12 9];

d = [b(1) + a(1, 2); b(2) + a(2, 2); b(3) + a(3, 2)];
f = [c(1) + a(1, 1) c(2) + a(1, 2) c(3) + a(1, 3) c(4) + a(1, 4)]

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote