3. Write your own MATLAB function that accepts a matrix A andcomputes the LU decomposition of A (without partial pivoting). Yourfunction should return L and U. Write a MATLAB script that usesthis function to solve the linear system from the previous problemto verify it’s functioning correctly.
4. Write a function which produces the time needed to computethe LU factorization for random square matrices from a size n = 10to n = 1000 using the function written in Problem 3 (you may findthe functions “tic” and “toc” useful). Use the following MATLABcommand to generate the random matrix (this ensures its strictlydiagonally dominant
PayPal Gateway not configured
PayPal Gateway not configured