Question: two part question, please provide MATLAB code for my understand, thank you Consider the algebraic linear equation Ax=b. Write a MATLAB function to perform forward

two part question, please provide MATLAB code for my understand, thank you
two part question, please provide MATLAB code for my understand, thank you

Consider the algebraic linear equation Ax=b. Write a MATLAB function to perform forward elimination. Your function should input the square matrix A and vector b and output the upper triangular version of the square matrix U and modified vector y. Be sure to include an error message for improper dimensions. You should thoroughly comment your code to show the TA that you know what your code is doing. Credit for this problem will be dependent on the comments provided. Test your function for the following system of cquations: 9x1+x22x3=294x16x2+2x3=58.5x1+x2+6x3=18.5 Consider the algebraic linear equation Ux=y where U is an upper triangular square matrix. Write a MATLAB function to perform backward substitution and solve for the vector x. You should thoroughly comment your code to show the TA that you know what your code is doing. Credit for this problem will be dependent on the comments provided. Test your function with the result from the previous

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!