15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1 Matrices and Linear Algebra<br />

Inverses and Determinants<br />

This section provides<br />

• An overview <strong>of</strong> the use <strong>of</strong> inverses and determinants for solving square<br />

nonsingular systems <strong>of</strong> linear equations<br />

• A discussion <strong>of</strong> the Moore-Penrose pseudoinverse for solving rectangular<br />

systems <strong>of</strong> linear equations<br />

Overview<br />

If A is square and nonsingular, the equations AX = I and XA = I have the same<br />

solution, X. This solution is called the inverse <strong>of</strong> A, is denoted by A -1 , and is<br />

computed by the function inv. The determinant <strong>of</strong> a matrix is useful in<br />

theoretical considerations and some types <strong>of</strong> symbolic computation, but its<br />

scaling and round<strong>of</strong>f error properties make it far less satisfactory for numeric<br />

computation. Nevertheless, the function det computes the determinant <strong>of</strong> a<br />

square matrix:<br />

A = pascal(3)<br />

A =<br />

1 1 1<br />

1 2 3<br />

1 3 6<br />

d = det(A)<br />

X = inv(A)<br />

d =<br />

X =<br />

1<br />

3 -3 1<br />

-3 5 -2<br />

1 -2 1<br />

1-22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!