Explore BrainMass

Explore BrainMass

    Write matlab function A=LU factorization.

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write the following MATLAB functions
    (a) function l,u¸=naivege(a) that returns the lower triangular matrix L and an upper triangular matrix U such that A=LU, obtained by Gauss Elimination without pivoting.
    (b) function x=utrisol(u,b) that solves the upper tridiagnonal system Ux=b using backward substitution.
    (c) Function x=ltrisol(l,b) that solves the lower tridiagnonal system Lx=b using forward substituion. Solve above system of equations and check the answer.

    © BrainMass Inc. brainmass.com November 30, 2021, 5:30 am ad1c9bdddf
    https://brainmass.com/math/graphs-and-functions/write-matlab-function-lu-factorization-463420

    Attachments

    Solution Summary

    The expert writes a matlab function A=LU factorization.

    $2.49

    ADVERTISEMENT