Question: Enter [ L , U , P ] = lu ( A ) to find the LU factorization of the matrix PA . Verify that
EnterLUP luAto find the LU factorization of the matrix PA Verify that by computing PALUassign this to variable ans
Use the LU factorizationyou found in part to solve the system : first use the command to solve the system store the solution in the variable y and then solve the system Call the computed solution xlu
The exact solution to the system is the vector Enter the vector xand compare your solution xlu from part with the exact solution xby computing normxluxassign this to variable ans
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
