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

Learn moreOpportunities for recent engineering grads.

Apply TodaySo the goal here is to find any number that is equal to its immediate neighbors and mark it true. Here is some examples:

x = [2 2 3 4 3 4 6 9 9] y = [1 1 0 0 0 0 0 1 1]

or

x = [2 2 2 2 2 9] y = [1 1 1 1 1 0]

Have fun!

44 correct solutions
27 incorrect solutions

Last solution submitted on Feb 06, 2016

1 Comment

Paul Berglund
on 29 Jul 2013

This solution is actually incorrect (but passes the test suite).

1 Comment