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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Find the zero array in the matrix and replace it with average of surrounding (adjacent) arrays.

Example:

A =

3 5 7 90 1 5 1 -1 0 2 1 2 3 4 70 23 1 2 3 5

Output is:

B=23.75;

31 correct solutions
35 incorrect solutions

Last solution submitted on Jun 15, 2015

1 player likes this problem

5 Comments