JACOBI_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 Jacobi iteration.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
GAUSS_SEIDEL_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 Gauss-Seidel iteration.
JACOBI, a MATLAB library which implements the Jacobi iteration for solving symmetric positive definite systems of linear equations.
You can go up one level to the MATLAB source codes.