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

show work for the following question . “Work” consists in demonstrating by handw

ID: 3755161 • Letter: S

Question

show work for the following question . “Work” consists in demonstrating by handwritten work how you arrived at values/answer and also, the final matrix of values that would be printed to the screen (if it was in matlab but it is not to be done in matlab). just predict and solve the code by hand and show all steps. DO NOT USE MATLAB TO ARRIVE AT YOUR ANSWERS!

clear;clc

A = [1, -1, 0; 3, 2, -1; 0, 0, 4];

B = [0, -2, -2; 6, 1, 3; 9, 0, 2];

C = [1, 0, -1; -1, -1, 2; 0, 5, -1];

for n = 2:3

    A(1,n) = B(2,n) - C(3, n-1);

end

A

Explanation / Answer

Hey,

Below is the answer to your question

For n=2, A(1,2)=-1, B(2,2)=1, C(3,1)=0
So, A(1,2)=1 - 0=1
So, After operation A is equal to

A =

     1     1     0
     3     2    -1
     0     0     4

For n=3, A(1,3)=0, B(2,3)=3, C(3,2)=5
So, A(1,3)=3 - 5=-2
So, After operation A is equal to

A =

     1     1    -2
     3     2    -1
     0     0     4

End of code
So, final A is equal to

A =

     1     1    -2
     3     2    -1
     0     0     4

Kindly revert for any queries

Thanks.