Question: pls helppp Write matlab code to solve tridiagonal linear systems, i.e., systems of the form Ax = b where A is tridiagonal. (This is rather

pls helppp
Write matlab code to solve tridiagonal linear systems, i.e., systems of the form Ax = b where A is tridiagonal. (This is rather easy given the pseudocode in the textbook!) This code must be in the form of a function. The inputs to the function should be in the form of vectors for the diagonal, lower-diagonal and upper-diagonal elements of the matrix and the vector right-hand side of the equation. Write a script that calls the function, and which also checks its output by computing Ax - b, where A is in its matrix form. Apply your code to solve Ax = b and check the solution, where A = [2 1 0 0 0 0 2 6 3 0 0 0 0 1 6 3 0 0 0 0 2 8 -1 0 0 0 0 -2 9 -3 0 0 0 0 1 8] and b = [1 2 3 4 5 6]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
