Skip to content

Solves the linear system Ax=b for x using Gaussian elimination with partial pivoting.

License

Notifications You must be signed in to change notification settings

tamaskis/gaussian_elimination-MATLAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gaussian_elimination View Gaussian Elimination (gaussian_elimination) on File Exchange

Solves the linear system for using Gaussian elimination with partial pivoting.

Syntax

x = gaussian_elimination(A,b)

Description

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.

Examples and Additional Documentation

  • 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.