MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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

564 correct solutions
101 incorrect solutions

Last solution submitted on Aug 25, 2015

1 player likes this solution

1 Comment

Pasumarthi Viswanath
on 15 Nov 2012

disgusting!!

1 Comment