Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is Matlab question of Linear Algebra, and it should be solved by using Matlab. Need the code and script of the two question. Matlab

This is Matlab question of Linear Algebra, and it should be solved by using Matlab. Need the code and script of the two question.image text in transcribed

Matlab Exercises The condition number of a matrix A, defined by cond A All2A-12, allows one to estimate the accuracy of a computed solution of a system Ax = b. If the entries of A and b are accurate to about r significant digits, and cond A ~ k, then the computed solution of Ax = b should usually be accurate to at least r-k significant digits. Solve the following two problems: Compute the Hilbert matrix H of order k- 5 and k 12 using the hilb command. -For k = 5, solve the system Hx b for a suitable b to find the last column of the inverse of H. Use the backslash command. To find a suitable b think of the solution as x - H-1b. - For k- 5 and k 12, solve the system Hx - y using the backslash command, where y is generated by applying H to a random vector x*, ie., y-Hx". Compute the 2-norm of the difference between x* and x, i.e., ? Hlx*-x112 and print ? to the screen. Print also the condition number (command: cond CH)) of H to the screen. Describe what you observe. Find the determinant (command: det (A)) and the condition number (command: cond (A)) of the Hilbert matrix H of order k (command: hilb(k)), for k- 1,2,...,10. Plot the determinant and the condition number as a function of k using a logarithmic scale for the vertical axis. Matlab Exercises The condition number of a matrix A, defined by cond A All2A-12, allows one to estimate the accuracy of a computed solution of a system Ax = b. If the entries of A and b are accurate to about r significant digits, and cond A ~ k, then the computed solution of Ax = b should usually be accurate to at least r-k significant digits. Solve the following two problems: Compute the Hilbert matrix H of order k- 5 and k 12 using the hilb command. -For k = 5, solve the system Hx b for a suitable b to find the last column of the inverse of H. Use the backslash command. To find a suitable b think of the solution as x - H-1b. - For k- 5 and k 12, solve the system Hx - y using the backslash command, where y is generated by applying H to a random vector x*, ie., y-Hx". Compute the 2-norm of the difference between x* and x, i.e., ? Hlx*-x112 and print ? to the screen. Print also the condition number (command: cond CH)) of H to the screen. Describe what you observe. Find the determinant (command: det (A)) and the condition number (command: cond (A)) of the Hilbert matrix H of order k (command: hilb(k)), for k- 1,2,...,10. Plot the determinant and the condition number as a function of k using a logarithmic scale for the vertical axis

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago

Question

Describe your ideal working day.

Answered: 1 week ago