You can modify the Jacobi function file to create a new function file for Gauss-Seidel iteration in MATLAB. Here's the modified MATLAB code for creating a Gauss-Seidel function:
main.m436 chars19 lines
You can save this code in a file named gauss_seidel.m
and then call it similar to how you would call the Jacobi function.
gistlibby LogSnag