Question: Please use mathlab Problem 5. points 20 - Use MATLAB A tridiagonal system with a bandwidth of three can be expressed generally as e2 f2

Please use mathlab
Problem 5. points 20 - Use MATLAB A tridiagonal system with a bandwidth of three can be expressed generally as e2 f2 g:2 e3 J3 93 T3 T3 7' n- Tn Develop a Matlab function that creates the matrix K of the above system (4) automat- ically. In particular, the function should take as input arguments the three diagonals as vectors e, f, g, and return the square matrix K. It should look like: [ K ] formTriDiagona!Matrix( e, f, g ) Hint: make use of the Matlab command diag(v,k), also in diag (click on that!) Test your code for the following case: -1000 x1 1 2-1 0 02 0 0 -1 2 -14 0 0 0 -1 25 Also, solve for the unknown vector x using Matlab's mldivide or "" operator
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
