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 ەوە بەکاربهێنە