3.3.10 part b please. please use script to work part a only of ex3.3.9. L0 sh ud
ID: 3733718 • Letter: 3
Question
3.3.10 part b please. please use script to work part a only of ex3.3.9. L0 sh uded to compute QR decompositions of non-square matrices 3.10 MATLAB's qr command, which we introduced in Exercise 3.2.48, can has s not ha (a) Try out the following commands, for example. A -randn (n,m) Q, R)qr (A) ddi tional or c (and stitution norm (eye (n)-' *Q) norm (A-Q*R) an norm In the interest of convenience, MATLAB returns Q in assembled form. the gr command. (The submatrix R can be accessed by writing R (1 :m, 1:m) or R (1 :m, :), for example.) Use your script to work parts (a) and (b) of Exercise 3.3.9 (b) Write a short MATLAB script (m-file) that solves least squares problems using This is not the simplest way to solve least squares problems using MATLAB. Recall from Exercise 3.1.5 that the command x Alb works as well. This gives you a simple way to check your work.Explanation / Answer
Please find the output of the following program
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
The answer to first question is given in as output. Here the variables are first listed with their value and finally the answer is also given in output.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
For part B of the program, below is the code determined in fortron
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Happy Coding
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.