Solves the linear system for
using Gaussian elimination with partial pivoting.
x = gaussian_elimination(A,b)
x = gaussian_elimination(A,b)
solves the linear system for
, where
and
.
NOTE: This function is intended as a demonstration of gaussian elimination. The "\
" and "/
" operators (or equivalently the "mldivide
" and "mrdivide
" functions) should still be used in practice when solving linear systems.
- See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
- See Gaussian_Elimination.pdf (also included with download) for additional documentation.