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

Learn moreOpportunities for recent engineering grads.

Apply TodaySum the 'edge' values of an input matrix (the values along the perimeter).

Example

[1 2 3 4 5 6 7 8 9]

Output = 1 + 2 + 3 + 6 + 9 + 8 + 7 + 4 = 40;

Assumption: Input matrix equal or bigger than 3x3.

69 correct solutions
47 incorrect solutions

Last solution submitted on Jul 26, 2016

1 player likes this problem

1 Comment