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

sum(x\')\' Given the array A = [2 4 1;6 7 2;3 5 9], provide the commands needed

ID: 3674552 • Letter: S

Question

sum(x')' Given the array A = [2 4 1;6 7 2;3 5 9], provide the commands needed to: Assign the element in first row and third column of A t a value of 10. Computer the sum of all the rows and columns. Compute the sum of column 2 only. Multiply A with 3 X 3 matrix of all ones. Compute the determinant of A. Given the arrays x = [l 4 8], y = [2 1 5] and A = [3 1 6;5 2 7], determine which of the following statement will correctly execute and provide the result. If the command will not correctly execute, state why it will not x + y x + A x' + y A - [x' y'] [x; y'] [x;y] A - 3 Create a 3 X 3 matrix 'B' random (1 to 100) and answer the following:

Explanation / Answer

Activity 1.2

a) A=changem(A,[1],[10])

b)Sum(A) returns vector sum of all columns.

Sum(A,2)-vector contains sum of all rows

C)sum(A,1)
//compute the sum of column 2 only

d)let's assume b is a 3x3 matrix of all 1's.

Command is A*b

E. To compute determinant of A.

det(A)

Activity 1.3

a)x+y is valid gives[3,5,13]

b.)its an errorerror,they are of different sizes.

C)x'+y gives error.because they are different sizes.

D)A-[x'y'] subtracts product of x'y' from each element of A.

e)[x,y']

Conconatenates x and y'

F) concatenation of x and y

G.A-3.

subtracts all elements of A with 3.