Scilab 5.4.1

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.

However, this page did not exist in the previous stable version.

# trace

trace

### Calling Sequence

trace(X)

### Arguments

- X
real or complex square matrix, polynomial or rational matrix.

### Description

`trace(X)`

is the trace of the matrix `X`

.

Same as `sum(diag(X))`

.

### See Also

- det — determinant

## Comments

Add a comment:Please login to comment this page.