Trace Returns the trace of a matrix, that is the sum of the diagonal elements. Syntax trace(Matrix) Description trace(Matrix) Given a matrix, returns its trace. Related functions Eigenvalues Table of Contents Syntax Description Related functions