How can I expand a 2d-matrix with dimensions x,x (e.g. mat = {{ 1, 2 }, { 3, 4 }}) with replicates of mat into matTimes100 with dimensions 100*x,100*x?
I tried Join[ mat, mat, mat, <97>, 2 ] which works nicely and would give me dimensions 100*x,x. However, I do not want to manually insert mat 100 times into Join[].
How to do that automatically? Join[ Table[ mat, { 1, 100 } ], 2 ] does not work, since it delivers Join[{mat, mat, mat, <97>}, 2 ].
EDIT:
On request, I try to clarify my question. In addition, I try to figure out, what exactly I'm trying to do.
Let's assume a MxM Matrix with M = 3:
mat={{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
Reverse@mat//TableForm
Now I would like to make a larger NxN matrix out of it with some of the rows and cols dropped in a periodic manner. I tried to visualize my purpose. In the MWE below I choose num = 2 with N = M + num * ( M - 1 ). The dropped rows/cols are indicated by the blue lines.
Thanks for your hints!!




Join[Sequence@@Table[mat,100],2]– Quantum_Oli May 11 '16 at 09:10PadRightlooks very nice. This will solve my Problem, thanks! – Kay May 11 '16 at 09:28mat? If that's the case (my answer below is another approach to get that), it would be good to edit it into the question, since it seems unclear to some, what you want. – LLlAMnYP May 11 '16 at 10:01Drop[Array[Reverse[{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}] &, {3, 3}, {1, 1}, ArrayFlatten[{##}] &], {3, 6, 3}, {4, 7, 3}]. – J. M.'s missing motivation May 11 '16 at 14:13