Skip to main content
1 of 5
garej
  • 5k
  • 2
  • 20
  • 44

with

mat = RandomInteger[9, {3, 6, 1}] 

using Leonid Shifrin method from here

Map[Apply[Sequence], mat, {2}] Map[Apply[Sequence], mat, {-2}] 

or just

Apply[Sequence, mat, {2}] Apply[Sequence, mat, {-2}] 
garej
  • 5k
  • 2
  • 20
  • 44