Part 2: Solve the following problems in MATLAB
1. Fill in the function E = myElim(A, r_entry, r_pivot, c) to create an m by m
elimination matrix ??. Remember that an elimination matrix looks like an identity matrix with one extra entry of ?? in row r_entry and column r_pivot.
2. Fill in the function M = myMult(A, c_pivot) to create an m by m multiplier matrix ??. Remember that a multiplier matrix looks like an identity matrix with the 1’s along the diagonal replaced with the inverse of the pivots of A.
3. Fill in the function P = myPerm(A, i, j) to create an m by m permutation matrix ??.
Remember that a permutation matrix looks like an identity matrix with rows i and j swapped.
4. Fill in your code in the function x = myRREF(A) to find the Reduced Row Echelon Form of ??. Follow the algorithm outlined in class to first eliminate the entries below the pivots (moving down and then right), then eliminate the entries above the pivots (moving up and then left), and then using the multiplier matrix to make the pivots 1. You should use your myElim, myPerm, and myMult functions inside of this function. The algorithm is outlined in greater detail in the file RREF.pdf up on the course Canvas page.
Get Answers For Free
Most questions answered within 1 hours.