Sum of diagonal elements
b = trace(A)
b = trace(A) is the sum
of the diagonal elements of the matrix A.
t = sum(diag(A));
det | eig
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend you select United States from the following list:
See all countries