Need Help ?

Home / Expert Answers / Other / lab-activity-7-7-1-matlab-qr-factorization-this-tool-is-provided-by-a-third-party-though-your-activi

(Answered): LAB ACTIVITY 7.7.1: MATLAB: QR Factorization This tool is provided by a third party. Though your ac ...



LAB ACTIVITY 7.7.1: MATLAB: QR Factorization This tool is provided by a third party. Though your activity may be recorded, aUse the following matrix for this activity. 1 0 3 - 1 B=-2 10 5 0 0 1 7 Script Save C Reset MATLAB Documentation 1 %Enter the

LAB ACTIVITY 7.7.1: MATLAB: QR Factorization This tool is provided by a third party. Though your activity may be recorded, a page refresh may be needed to fill the banner. MATLAB: QR Factorization In this activity you will find the QR factorization of a matrix. Consider the matrix A. -20 ??? A= 3 1 0 %Use the qr() command to find the QR factorization of A, where Q is an orthogonal matrix and R is an upper triangular matrix. A = [-2 0 3; 1 3 1; 0 1 -1] [Q, R] = qr(A) %Verify QR=A. checkA = O*R Use the following matrix for this activity. 10 3 -1 B= -2 10 0017 5 Use the following matrix for this activity. 1 0 3 - 1 B=-2 10 5 0 0 1 7 Script Save C Reset MATLAB Documentation 1 %Enter the matrix B. Then use the qr() command to find the QR factorization of B, storing 2 %the orthogonal matrix in QB and the upper triangular matrix in RB. Note that while the focus 3 %of the last section of the zyBook was on square matrices, QR factorization can be done for 4 %any size matrix. 5 This matrix should 6 B = [1, 0, 3, -1; -2, 1, 0,5; 0, 0, 1, 7] 7 8 %Verify the result. Find the product of QB and RB, storing it in checkB. 9 %equal the original matrix B. 10 11 [Q, B] = qb(B) 12


We have an Answer from Expert

View Expert Answer

Expert Answer


Answer to LAB ACTIVITY 7.7.1: MATLAB: QR Factorization This tool is provided by a third party. Though your activity may be recorde...
We have an Answer from Expert

Buy This Answer $4

Place Order