Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Examples:
Input n = 3 Output a is [ 2 2 2 2 1 2 2 2 2 ]
Input n = 5 Output a is [ 3 3 3 3 3 3 2 2 2 3 3 2 1 2 3 3 2 2 2 3 3 3 3 3 3 ]
Determine whether a vector is monotonically increasing
7958 Solvers
Omit columns averages from a matrix
463 Solvers
Back to basics 9 - Indexed References
331 Solvers
Find the largest value in the 3D matrix
788 Solvers
Reverse the elements of an array
450 Solvers
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today