Hello
I was wondering if there is a function to turn this matrix into this matrix
Thanks in advance,Tommaso
ArrayFlatten[a] also works.
ArrayFlatten[a]
Another solution is given here
https://community.wolfram.com/groups/-/m/t/1732127?p_p_auth=8REGCx2W
I found this in the documentation for Flatten:
Flatten
m = {{{{0, 0}, {0, 0}}, {{1, 0}, {0, 1}}}, {{{1, 0}, {0, 1}}, {{0, 0}, {0, 0}}}}; m // MatrixForm Flatten[m, {{1, 3}, {2, 4}}] // MatrixForm
Thank you for the replies. ArrayReshape did it for me!
You want to look into ArrayReshape.