Gauss seidel
Version 1.0.1 (1.31 KB) by
Langel Thangmawia
Solution of system of equation by Gauss seidel
Example : Solve using Gauss Seidelmethod:
10x1 -x2+ 2x3 = 6
-x1 + 11x2 - x3 +3x4 = 25
2x1 - x2+ 10x3 -x4 = -11
3x2 - x3 + 8x4 = 15
Enter matrix A : [10 -1 2 0;-1 11 -1 3; 2 -1 10 -1;0 3 -1 8]
Enter matrix B : [6 25 -11 15]'
Enter initial guess : [0 0 0 0]'
Enter tolerable error : 0.001
Enter no of iteration : 10
Solution after 10 iteration is:
1.0000
2.0000
-1.0000
1.0000
Cite As
Langel Thangmawia (2026). Gauss seidel (https://www.mathworks.com/matlabcentral/fileexchange/180727-gauss-seidel), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
