www.delorie.com/gnu/docs/octave/octave_10.html   search  
 
Buy GNU books!


GNU Octave

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Solving Linear Equations

To solve the set of linear equations ax = b, use the left division operator, `\':

 
octave:7> a \ b

This is conceptually equivalent to inv (a) * b, but avoids computing the inverse of a matrix directly.

If the coefficient matrix is singular, Octave will print a warning message and compute a minimum norm solution.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003