Question: 10.2 (a) Write a wl-commented MaTLAB function program mysolvecheck with input a number n that makes a random n n matrix A and a random

 10.2 (a) Write a wl-commented MaTLAB function program mysolvecheck with input

10.2 (a) Write a wl-commented MaTLAB function program mysolvecheck with input a number n that makes a random n n matrix A and a random vector b, solves the linear system Ax-b, calculates the scalar residual Ax bll, and outputs that number as r. (b) Write a well-commented MATLAB script program that calls mysolvecheck 10 times each for n 10, 50, 100, 500, and 1000, records and averages the results and makes a log-log plot of the average e vs. n. Increase the maximum n until the program stops running within 5 minutes. Turn in the plot and the two prograns

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 Databases Questions!