Qurak

DiamondMatrix

లభ్యం

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

వాడిన చోటు

అంశాలు

సంబంధితమైనవి

మొత్తం 6300 ఫంక్షన్లు · దీన్ని MCP క్లయింట్ నుండి వాడండి