Qurak

DiamondMatrix

Beschikbaar

Creates a diamond-shaped matrix of ones.

DiamondMatrix[r]
DiamondMatrix[r, w]
DiamondMatrix[{r1, r2, …}, …]
DiamondMatrix[2] → {{0, 0, 1, 0, 0}, {0, 1, 1, 1, 0}, {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}}DiamondMatrix[1, 5] → {{0, 0, 0, 0, 0}, {0, 0, 1, 0, 0}, {0, 1, 1, 1, 0}, {0, 0, 1, 0, 0}, {0, 0, 0, 0, 0}}

Gebruikt in

Onderwerpen

Gerelateerd

Alle 6300 functies · Gebruik dit vanuit een MCP-client