Scilab Function
Last update : 28/12/2008

trace - trace

Calling Sequence

trace(X)

Parameters

Description

trace(X) is the trace of the matrix X.

Same as sum(diag(X)).

Examples


A=rand(3,3);
trace(A)-sum(spec(A))
 
  

See Also

det,