Question: write a function called AddRows that accepts two parameters Wt: a matrix of sire 7x4 elements of type integer B1: a one dimensional array of
write a function called "AddRows" that accepts two parameters Wt: a matrix of sire 7x4 elements of type integer B1: a one dimensional array of size 4. For each column in W1, the function will calculate and store in the corresponding element of array B1, the sum of the elements located in even rows of W1. For example i W1 - 3 5 4 1 12 6 7 1 3 7 9 4 10 8 5 6 1 I 8 5 10 2 2 5 4 3 5 6 10 12 12 Then B1 20 27 19 35 Last soved 8:58:4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
