Question: matlab Write a function to implement the LU decomposition method solving the following system of linear equations: Ax = b where A is the coefficient
Write a function to implement the LU decomposition method solving the following system of linear equations: Ax = b where A is the coefficient matrix and b is the constant column vector Begins your function with function x = solvelu(A,b) Do not use "l' or 'N_1' or built-in function 'lu' and 'inv'. Then try your function to solve the following equation: A=[1 2 6; 4.8 -1; 2.3 -5] b = [0; 1; -2] The solution should be X = -5.1200 2.6800 -0.0400
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
