Qurak

DiamondMatrix

Tilgjengelig

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

Brukt i

Emner

Relatert

Alle 6300 funksjoner · Bruk dette fra en MCP-klient