MATLAB Function Reference Previous page   Next Page
trace

Sum of diagonal elements

Syntax

Description

b = trace(A) is the sum of the diagonal elements of the matrix A.

Algorithm

trace is a single-statement M-file.

See Also

det, eig


Previous page  toeplitz trapz Next page

© 1994-2005 The MathWorks, Inc.