Tag Info

Hot answers tagged

4

TableForm does the trick: array = {{"a", "b", "c", "d"}}; TableForm[array, TableHeadings -> {None, Automatic}] More flexible would be a MapIndexed-based solution: Grid[MapIndexed[{#2[[1]], #} &, array[[1]]] // Transpose, Frame -> All]


1

rF = With[{m = #, dim = Length@#}, Array[m[[dim + 1 - #2, dim + 1 - #1]] &, {dim, dim}]] &; mA = Array[a, {4, 4}]; Row[MatrixForm /@ {mA, rF@mA}] $\left( \begin{array}{cccc} a[1,1] & a[1,2] & a[1,3] & a[1,4] \\ a[2,1] & a[2,2] & a[2,3) & a[2,4] \\ a[3,1] & a[3,2] & a[3,3) & a[3,4] \\ a[4,1] & a[4,2] ...



Only top voted, non community-wiki answers of a minimum length are eligible