Unformatted text preview: [L,U,P]=lu(A) It takes as input A and returns L , U and the permutation matrix P such that LU = PA . Once you have these matrices, to solve a system A x = b , you can use the following commands b=P*b y=L\b x=U\y Use the LU factorization to analyze the pump in 9.14 with the following values for Q 1 : Q 1 = 1, 5, 15, 20, 25. Note you only need to compute the LU factorization once . Hand in all matlab mﬁles, diaries, and scripts....
View
Full Document
 Spring '08
 N/A
 Englishlanguage films, LU factorization, Matrix decomposition, matlab lu function

Click to edit the document details