[ANSWER] MAT350 7.7 MATLAB: QR Factorization

$ 154.00

MAT350 7.7 MATLAB: QR Factorization

In this activity you will find the QR factorization for a matrix.

Consider the matrix A.

-2 0 3

A = [ 1 3 1 ]

0 1 -1

Use the qr() command to find the QR factorization of A, where Q is an orthogonal matrix and R is an upper triangular matrix.

Order Now
Order This Paper

MAT350 7.7 MATLAB: QR Factorization

In this activity you will find the QR factorization for a matrix.

Consider the matrix A.

-2 0 3

A = [ 1 3 1 ]

0 1 -1

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 = Q*R

Use the following matrix for this activity.

1 0 3 -1

B = [ -2 1 0 5 ]

0 0 1 7

Enter the matrix B.  Then use the qr() command to

Note: Full answer to this question is available after purchase.
find the QR factorization of B, storing the orthogonal matrix in QB and the upper triangular matrix in RB.  Note that while the focus of the last section of the zyBook was on square matrices, QR factorization can be done for any size matrix.

B = [ 1 0 3 -1; -2 1 0 5; 0 0 1 7]

[QB, RB] = qr(B);

Verify the result.  Find the product of QB and RB, storing it in checkB.  This matrix should equal the original matrix B.

checkB = QB * RB;

Related; MAT350 7.3 MATLAB: Norms and Distances.

Order This Paper

Reviews

There are no reviews yet.

Be the first to review “[ANSWER] MAT350 7.7 MATLAB: QR Factorization”

Your email address will not be published. Required fields are marked *

error: Content is protected !!