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

I need help with this MATLAB assignment Perform the following tasks/questions in

ID: 2249078 • Letter: I

Question


I need help with this MATLAB assignment

Perform the following tasks/questions in separate MATLAB cells (label cells as task/questionn numbers). Note the first cell (unnumbered) should be your Name, section number and the version of this Assignment. Tasks follow: System of equations x1 + 2x2-3x3 = 1 2x1 + 5x2-8x3-4 3x1 + 8x2-13x3-7 . Using MATLAB, enter the coefficient matrix, A, and enter the B matrix then create an augmented matrix using: augAB IA, B) 2. Using rref), find the reduced row echelon form. 3. Note that this system is consistent. Manually enter as comments the following: . Pivots (give row and column number): .e. (3,4) means row 3 col 4 Basic variables: such as xl etc Free variables 4, Manually write the solution to the system of equations solving for basic variables = function free variables and constants). Remember to include any free variables 5. Select two different values for the free variable and use MATLAB to create a solution vector [xl; x2; x3] for each. Verify both choices are correct by using MATLAB to compute A sol_vec which must be equal to the vector B. Checking equality to "B manually is the preferred method. Include comments as to the equality in the cell. 6. We now wish to use MATLAB as an aid to manually find the reduced row echelon matrix from the augmented matrix. Starting with the value of augAB from cell 1 perform elementary row operations on it to get the rref form you found in part 2. Some hints: You may want to do this live in the workspace to see what is going on Make copies of intermediate matrices so vou don't have to start over if an error occurs. See Wednesday's lecture for MATLAB code to do EROs (interchange, scaling & Put your final work in cell 6, include comments on what each line does and make sure intermediate values print out (don't suppress everything with the semicolon). Make sure the cell works.

Explanation / Answer

1.

>> A=[1 2 -3;2 5 -8;3 8 -13];
>> B=[1;4;7];
>> augAB=[A,B]

augAB =

     1     2    -3     1
     2     5    -8     4
     3     8   -13     7

2.

>> rref(augAB)

ans =

     1     0     1    -3
     0     1    -2     2
     0     0     0     0