Creates a matrix of ones with given radius.
BoxMatrix[r]
BoxMatrix[r, w]
BoxMatrix[{r1, r2, …}, …]
BoxMatrix[0]
→ {{1}}BoxMatrix[1, 5]
→ {{0, 0, 0, 0, 0}, {0, 1, 1, 1, 0}, {0, 1, 1, 1, 0}, {0, 1, 1, 1, 0}, {0, 0, 0, 0, 0}}BoxMatrix[0, 4]
→ {{0, 0, 0, 0}, {0, 1, 1, 0}, {0, 1, 1, 0}, {0, 0, 0, 0}}