I have a long vector array in the following format:
{{{{x1,y1,z1,{a,b,c}},{x1,y1,z2,{d,e,f}},...},{{x1,y2,z1,{g,h,i}},{x1,y2,z2,
{g,h,i}},...},...},{{{x2,y1,z1,{j,k,l}},{x2,y2,z1,{m,n,o}},...},{{x2,y2,z1,
{p,r,s}},{x1,y2,z2,{t,u,v}},...},...}}
I need to add brackets to the first three terms {xi,yi,zi} of every {xi,yi,zi,{a,b,c}}, but I couldn't figure it out myself using
Partition
Thank you.
ArrayReshape[t, Join[Most@Dimensions@t, {2, 3}]]]
wheret
is the target... $\endgroup$ – ciao Jun 13 '15 at 5:17