Manipulate matrix in Thematica

Asked

Viewed 38 times

3

Good morning, I’m trying to make in thematica a matrix from other matrices, I have: {{{{a,b,c}, {d,e,f}, {g,h,i}},{{j,k,l},{m,n,o},{p,q,r}}},{{{j,m,p},{k,n,q},{l,o,r}}, {{s,t,u},{v,ww,x},{y,z,zz}}}}

matriz que tenho

and would like to get:

{{a,b,c,j,k,l},{d,e,f,m,n,o},{g,h,i,p,q,r},{j,m,p,s,t,u},{k,n,q,v,ww,x},{l,o,r,y,z,zz}}

Link to the matrix image I want

(I couldn’t put the image, because the Mgur is rejecting I don’t know why)

There’s an easy way to get it?

1 answer

2


The function ArrayFlatten does exactly what you need.

matrizDeMatrizes <- {{{{a,b,c}, {d,e,f}, {g,h,i}},{{j,k,l},
{m,n,o},{p,q,r}}},{{{j,m,p},{k,n,q},{l,o,r}}, 
{{s,t,u},{v,ww,x},{y,z,zz}}}}
matrizGerada <- ArrayFlatten[matrizDeMatrizes]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.