Qurak

CenterArray

उपलब्ध

Center a list within a larger array.

CenterArray[a, n]
CenterArray[a, {n1, n2, …}]
CenterArray[a, nspec, pad]
CenterArray[nspec]
CenterArray[{a, b, c}, 2] → {b, c}CenterArray[x, 5] → {0, 0, x, 0, 0}CenterArray[x, {5, 5}] → {{0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, x, 0, 0}, {0, 0, 0, 0, 0}, {0, 0, 0, 0, 0}}CenterArray[5] → {0, 0, 1, 0, 0}

विषय

संबंधित

सभी 6300 फ़ंक्शन · इसे किसी MCP क्लाइंट से उपयोग करें