Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In MATLAB, create the following 20 x 10 matrix: A 1 = ( 101-19 110x10 10-8110x10 where 110x10 is a 10 x 10 matrix


 
 

In MATLAB, create the following 20 x 10 matrix: A 1 = ( 101-19 110x10 10-8110x10 where 110x10 is a 10 x 10 matrix whose entries are all ones. This particular matrix has a very large condition number, since the columns of A are nearly linearly dependent. Consider the least-squares problem Ax = a. Solve this least-squares problem in MATLAB using the normal equation. That is, form the matrix ATA and solve ATAx = ATb. You may use MATLAB's backslash command to solve this system, or you may compute the inverse of ATA to solve for x directly. Are you able to get a solution? What (if any) warnings does MATLAB give you? b. Solve this least-squares problem in MATLAB by the QR equation. That is, obtain the re- duced QR factorization of A and solve Rx = QTb by MATLAB's backslash command or by computing the inverse of R. Note: Please use MATLAB's built-in QR factorization function as follows: [Q,R] = qr(A). Remember that MATLAB returns a full QR factorization. To get the reduced QR factoriza- tion, take only the first ten columns of Q and the first ten rows of R since A is a 2010 matrix. Rounded to the second decimal place, what is the solution x to this least-squares problem? Does this solution seem reasonable, i.e., does Axb for the least-squares solution x?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linear Algebra with Applications

Authors: Steven J. Leon

7th edition

131857851, 978-0131857858

More Books

Students also viewed these Mathematics questions

Question

How to Calculate the Regression Line

Answered: 1 week ago