Skip to main content
2 of 9
added 136 characters in body
Conor Cosnett
  • 7.9k
  • 1
  • 26
  • 47

wrap the matrix with the the Flatten function

M = {{{1}, {2}, {3}, {4}}, {{5}, {6}, {7}, {8}}} 

enter image description here

Map[Flatten,{{{1}, {2}, {3}, {4}}, {{5}, {6}, {7}, {8}}}] 

{{1, 2, 3, 4}, {5, 6, 7, 8}}

In Mathematica this is known as "nested" Lists. Flatten removes all wrappings of the List function until only one remains

Conor Cosnett
  • 7.9k
  • 1
  • 26
  • 47