Home > K25104 > LinearSystems > LU_script.m

LU_script

PURPOSE ^

Usage example for LU

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage example for LU
 related to Exercise 2.2

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Usage example for LU
0002 % related to Exercise 2.2
0003 
0004 A = [8 6 -2 1;
0005     8 8 -3 0;
0006     -2 2 -2 1;
0007     4 3 -2 5];
0008 
0009 b = [-2;
0010     0;
0011     2;
0012     -1];
0013 
0014 [L,U]=LU(A);
0015 
0016 y = Forward(L,b);
0017 x = Backward(U,y)

Generated on Mon 18-Jan-2016 10:25:49 by m2html © 2005