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

Learn moreOpportunities for recent engineering grads.

Apply TodayMYSTERYFUNCTION3 This takes a vector of numbers v and computes a vector w such the w[i] is the average of v[i] and the previous element. v[1] should be w[1] instead of an average. The function should work properly for any vector of length of at least one.

34 correct solutions
10 incorrect solutions

Last solution submitted on Jun 14, 2014

1 Comment