No BSD License  

Highlights from
LPDU decomposition

3.0

3.0 | 2 ratings Rate this file 3 Downloads (last 30 days) File Size: 2.38 KB File ID: #6865

LPDU decomposition

by Yi Zhang

 

05 Feb 2005 (Updated 08 Feb 2005)

LPDU decompostion.

| Watch this File

File Information
Description

LPDU decomposition of non-singular square matrix

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
13 Mar 2005 Suhas Taneja

Excellent

07 Jun 2010 Stefan

The function fails for "higher" dimension. E.g.

>> A=rand(4,4);
>> det(A)

ans =

    0.0149

>> [L,P,D,U]=lpdu(A)

Warning: Matrix is close to singular or badly scaled.
         Results may be inaccurate. RCOND = 1.421637e-033.
> In LPDU at 83

L =

  1.0e+016 *

    0.0000 0 0 0
   -1.2269 0.0000 0 -0.0000
   -1.2245 0.0000 0.0000 0.0000
    1.1595 0.0000 -0.0000 0.0000

P =

     1 1 0 0
     1 0 1 0
     1 0 0 1
     1 0 0 0

D =

  1.0e+014 *

    1.9878 0 0 0
         0 0.0000 0 0
         0 0 -0.0000 0
         0 0 0 0.0000

U =

    1.0000 3.1587 12.4369 11.8480
         0 1.0000 -4.0000 4.0000
         0 0 1.0000 0.2882
         0 0 0 1.0000

>> norm(L*P*D*U-A)

ans =

  7.2518e+031

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
linear algebra Yi Zhang 22 Oct 2008 07:40:47
lpdu Yi Zhang 22 Oct 2008 07:40:47
decomposition Yi Zhang 22 Oct 2008 07:40:47
nonsingular Yi Zhang 22 Oct 2008 07:40:47
square Yi Zhang 22 Oct 2008 07:40:47
matrix Yi Zhang 22 Oct 2008 07:40:47

Contact us at files@mathworks.com