Question: Create a MATLAB function that takes as inputs one square matrix A = [aij]nxn, and outputs its LU decomposition matrices. L being a lower triangular

 Create a MATLAB function that takes as inputs one square matrixA = [aij]nxn, and outputs its LU decomposition matrices. L being a

Create a MATLAB function that takes as inputs one square matrix A = [aij]nxn, and outputs its LU decomposition matrices. L being a lower triangular with ones along the diagonal and U an upper triangular matrix (follow the steps below). / 2. Create a MATLAB function called LU_factorisation" that: Takes a square matrix A of size n x n as an input, and Provides outputs the two matrices Land U 3. Within LU_factorisation, write an if statement to ensure that the input matrix is always square of size n. Also initialise the two matrices Land U as appropriate. 4. Use the expressions in 1., in a double for loops within LU_factorisation, to find the entries of the two matrices L and U

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!