GAUSS_SEIDEL_POISSON_1D is a MATLAB program which demonstrates how the linear system for a discretized version of the steady 1D Poisson equation can be solved by the Gauss-Seidel iteration.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
GAUSS_SEIDEL, a MATLAB library which implements the Gauss-Seidel iteration for linear systems.
JACOBI_POISSON_1D, a MATLAB program which demonstrates how the linear system for a discretized version of the steady 1D Poisson equation can be solved by the Jacobi iteration.
You can go up one level to the MATLAB source codes.