linear equations below
Show transcribed image text moode.kurana ed」 LU Decomposition Lab Using MATLAB, solve for the x values of the simultaneous linear equations below: 2×1 + 2×2 +x3-2 2×1 + x2 + 30 The function should be called "LUdecomp" and should retun an aray of x values. The function should contain subfunctions "solve" and "decomp". The subfunction "decomp" will: · Check if the A matrix is singular. If so, returm an error flag. display a message the matrix is singular, and exit the program. Decompose the A matrix, if not singular, into a lower and upper triangular matrix using Crout's method. The subfunction "solve" will accept the decomposed LU matrix and a b vector to caleulate the solution vector, x · Upload the following to Moodle: 1. A screen capture of your program running. including the solution vector x 2. A m file of your code with descriptive comments.
moode.kurana ed」 LU Decomposition Lab Using MATLAB, solve for the x values of the simultaneous linear equations below: 2×1 + 2×2 +x3-2 2×1 + x2 + 30 The function should be called "LUdecomp" and should retun an aray of x values. The function should contain subfunctions "solve" and "decomp". The subfunction "decomp" will: · Check if the A matrix is singular. If so, returm an error flag. display a message the matrix is singular, and exit the program. Decompose the A matrix, if not singular, into a lower and upper triangular matrix using Crout's method. The subfunction "solve" will accept the decomposed LU matrix and a b vector to caleulate the solution vector, x · Upload the following to Moodle: 1. A screen capture of your program running. including the solution vector x 2. A m file of your code with descriptive comments.





