Question: Write a MATLAB function named 'cholqr' in the file 'cholqr.m ' that performs the actions described below. The cholqr function will accept an n by

Write a MATLAB function named 'cholqr' in the file 'cholqr.m' that performs the actions described below.
The cholqr function will accept an n by n positive definite matrix \( X \) where n is an even integer greater than 9. Generate a positive definite matrix \( Y \) by calculating "\( Y=X \)'*\( X \);". Generate the Cholesky decomposition of \( Y \)(name it C , which will have the property that \(\mathrm{Y}=\mathrm{C}{}^{\prime *}\mathrm{C}\) in pure math). Generate the QR decomposition of the input matrix (matrices Q and R). Generate Matrix A as C'* C. Use Q and R to generate matrix B. Generate the Cholesky decomposition of the upper-left 5 by 5 slice of \( Y \) as D. Return Y, Y-A, Y-B, C and D. In the documentation of your code, describe anything you notice about D , and about the upper right and lower left quarters of \(\mathrm{Y}-\mathrm{A}\).
Write a MATLAB function named 'cholqr' in the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!