Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
SLU.M
Package: easy.zip [view]
Upload User: sfyaiting
Upload Date: 2009-10-25
Package Size: 320k
Code Size: 1k
Category:
GPS develop
Development Platform:
Matlab
- function [L,U] = slu(A)
- %SLU Simple, square, LU factorization.
- % [L,U] = SLU(A) for a square matrix A, illustrates the use of
- % Gaussian elimination to compute a lower triangular matrix L
- % and an upper triangular matrix U so that L*U = A.
- %
- % The algorithm does no pivoting and so will fail if a small
- % pivot is encountered.
- %
- % See also SLV, PLU, LU.
- [n,n] = size(A);
- tol = 1.e-6;
- for k = 1:n
- if abs(A(k,k)) < tol
- disp(['Small pivot encountered in column ' int2str(k)])
- end
- L(k,k) = 1;
- for i = k+1:n
- L(i,k) = A(i,k)/A(k,k);
- for j = k+1:n
- A(i,j) = A(i,j) - L(i,k)*A(k,j);
- end
- end
- for j = k:n
- U(k,j) = A(k,j);
- end
- end