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!!
729 Solvers
415 Solvers
How to find the position of an element in a vector without using the find function
2320 Solvers
281 Solvers
243 Solvers