Make a spiral in a (n*n) matrix. The spiral has to start in the top left, and has to rotate clockwise to the center. The spiral has to have a padding of zeros between itself.
The (n*n) matrix is filled with zeros except for the spiral, that has to be made of 11 (elevens, for visual reference). The final matrix has to have the same or more zeros than elevens.
Example: n=8
A =
11 11 11 11 11 11 11 11 0 0 0 0 0 0 0 11 0 0 11 11 11 11 0 11 0 0 11 0 0 11 0 11 0 0 11 0 11 11 0 11 0 0 11 0 0 0 0 11 0 0 11 11 11 11 11 11 0 0 0 0 0 0 0 0
wow accumarray , cumsum , arrayfun interp1 ... in a signle line !
Determine if a Given Number is a Triangle Number
286 Solvers
Find nearest prime number less than input number
183 Solvers
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
146 Solvers
Given a 4x4 matrix, swap the two middle columns
300 Solvers
Create Volcano (or Atoll) martix. It is an extension of Bullseye matrix problem.
69 Solvers