|
"David Doria" <daviddoria@gmail.com> wrote in message
news:gb92pc$lhl$1@fred.mathworks.com...
> Is there any way to have lu(A) give the actual lower triangular matrix L
> back? It seems silly to me to have to rearrange it?
As Walter said, call LU with three or more output arguments. To clarify:
when you call it with two outputs, you receive a '"psychologically lower
triangular matrix" (i.e. a product of lower triangular and permutation
matrices)' as the first output. The three-output form returns the two
matrices that you would have to multiply to get that psychologically lower
triangulat matrix as the first (the lower triangular matrix) and third (the
permutation matrix) outputs.
--
Steve Lord
slord@mathworks.com
|