If
x = [1 2 4; 3 4 5; 5 6 7]
then y should be the sum of the diagonals of the matrix
y = 1 + 4 + 7 = 12
duuuuuuuh
dooh ... the solution is in test suite
>.<
yeah, but it's a long one
disgusting!!
1013 Solvers
247 Solvers
Sum the numbers on the main diagonal
375 Solvers
Find the dimensions of a matrix
267 Solvers
171 Solvers