Write a MATLAB function to perform the LU factorization.Your input should be a nonsingular n ×n matrix A.output should be a lower triangular matrix L and an upper triangular matrix U such that A = LU.

Math question. Instructions: For proof-based questions, write your answers on your own papers. For pro-gramming questions, submit your codes using MATLAB Grader. Hand in your homework(written part) on Wednesday, October 6 in class. Write a MATLAB function to perform the LU factorization. Your input should be a nonsingular n ×n matrix A. Your output should … Read more