Question: Linear Systems. Write a separate m - file for each part. Remember to capture Matlab s screen output to a diary file. ( a )

Linear Systems. Write a separate m-file for each part. Remember to capture Matlabs screen output to a diary file.
(a) Solve the following system using MATLABs blackslash \ operator.
(b) Let the matrix A be given by
121x12312 x2=8.
223x39
17241815
23571416 A=46132022.
10121921311182529
Solve the system Ax = b for the following right hand side vectors b using Matlabs backslash operator.
244
1 b2=4,
2114
(c) In part (b), since we have the same coefficient matrix for three linear systems, one does not need to do three separate linear solves; in such cases it is possible to solve all three systems simultaneously by defining a matrix B =[b1, b2, b3] which has b1, b2, and b3 as its columns. Next, one can solve the matrix equation AX = B using X = A \ B. Then, the matrix X will contain the solutions to the systems Axi = bi, i =1,...,3 as its columns, X =[x1, x2, x3]. Redo part (b) using this technique.

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!