[Solved]Create 100 100 Matrix Using Command Toeplitz 1 100 Use Loop Solve Ax B Using Backslash 100 Q37300153
Please answer using MATLAB! Thanks.

Create a 100 × 100 matrix using the command A = toeplitz (1 : 100)·Use a for loop to solve Ax = b using backslash 1000 times for different b vectors. Each time through the loop, create a new b vector using the rand command. Use tic and toc to time how long it takes MATLAB to do all 1000 solves. Then time how long it takes to solve Ax b 1000 times using both LU decomposition and inv (A). For LU decomposition, be sure to calculate the matrices L, U, and P outside of your for loop. Write down the time it took for each of the three methods in your writeup Using the same matrix, solve Ax-b 10000 times using each of the three methods. 143d Write down the time it took for each method. Show transcribed image text Create a 100 × 100 matrix using the command A = toeplitz (1 : 100)·Use a for loop to solve Ax = b using backslash 1000 times for different b vectors. Each time through the loop, create a new b vector using the rand command. Use tic and toc to time how long it takes MATLAB to do all 1000 solves. Then time how long it takes to solve Ax b 1000 times using both LU decomposition and inv (A). For LU decomposition, be sure to calculate the matrices L, U, and P outside of your for loop. Write down the time it took for each of the three methods in your writeup Using the same matrix, solve Ax-b 10000 times using each of the three methods. 143d Write down the time it took for each method.
Expert Answer
Answer to Create a 100 × 100 matrix using the command A = toeplitz (1 : 100)·Use a for loop to solve Ax = b using backslash 1000… . . .
OR

