Home > K25104 > LinearSystems > Gauss_Seidel_script.m

Gauss_Seidel_script

PURPOSE ^

Usage example for Gauss_Seidel

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage example for Gauss_Seidel
 related to Exercise 2.13

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Usage example for Gauss_Seidel
0002 % related to Exercise 2.13
0003 
0004 A = [100 -11;
0005     9 1];
0006 b = [111;
0007     10];
0008 x0 = zeros(2,1);
0009 w = 200/299;
0010 imax = 100;
0011 
0012 [ x,k,H,E ] = Gauss_Seidel( A,b,x0,w,imax )

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