Matlab for assignment 8

Matlab for assignment 8 - rows are zero in R the last two...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lauren Hamme Timothy Eng Section 204 1. a. Q*R is equal to A b. Both the Q and the R are the negative of the answer to the homework. The first two columns of the Q in Matlab correspond to Q in the homework assignment. The top two rows of the R in Matlab correspond to R in the homework assignment. c. [QQ,RR] = qr(A,0) Q*R ans = 5.0000 3.0000 4.0000 6.0000 2.0000 7.0000 2.0000 -2.0000 d. Since the rank of A is 2, the R produced has two bottom rows that are zero. The first two columns of Q correspond to the top two rows of R in the QR factorization. Since the bottom two
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: rows are zero in R, the last two columns of Q are not necessary and can be eliminated as in part c. However if the rank of A were to be 4, this would produce an nxn matrix R and all columns of Q would be necessary. (If the rank were to be three, the first three columns of Q would be used with the last row of R being zeros). 2. Used to check number 29 of section 5.2: A=[-3 1; 4 7]; [Q,R]=qr(A) Q =-0.6000 0.8000 0.8000 0.6000 R = 5 5 0 5-Q verifies answer of U: u 1 =[-3/5; 4/5] u 2 =[4/5; 3/5]...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

Matlab for assignment 8 - rows are zero in R the last two...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online