Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I'm trying to define each result of my matrix, i guess it isn't complicate but I didn't find anything about it.

Solved! Go to Solution.
Two options:

If you just want to sum the diagonal, then one way of doing it is to extract the diagonal and sum it

Alternatively, you could simply take the trace: ![]()

Stuart
