Qurak

BoxMatrix

Available

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}}

Topics

Related

All 6300 functions · Use this from an MCP client