Question: Task 3: Create a Function for Crout (LU) Reduction (10 pts) Do not use any of MATLAB's built in functions or commands. This MUST implemented

 Task 3: Create a Function for Crout (LU) Reduction (10 pts)

Task 3: Create a Function for Crout (LU) Reduction (10 pts) Do not use any of MATLAB's built in functions or commands. This MUST implemented using matrix and vector components via FOR loops in your construction. Use Crout reduction to convert a square matrix A into the product of triangular matrices LU. Use the MATLAB commands L zeros(n) and UE eye(n) to initialize matrices L and U, and then preform a reduction by implementing the algorithm for k 1:n for i k:n LU for j k+1:n k j where A is a square matrix of dimension ngn, L will be a lower-triangular matrix of dimension nen and U will be an upper-triangular matrix of like dimension neAn. No pivoting is to be programmed into your code. This function must have the interface CL, UE crout LU (A) and it needs to verify that A is a square nAn matrix with numeric elements, where n is arbitrary; if not your code should terminate with an error. It should write a warning message to the command window if any diagonal element of the reduced matrix L is zero valued

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!