The UNRAVEL Command

 

Use UNRAVEL to dismantle a matrix or table and create a one-dimensional series or vector from multiple data columns. This function concatenates the contents of each column into a single data column.

Example

 

a = {{1, 1, 4},

  {2, 0, 5}, 

  {3, 1, 6}} 

 

b = unravel(a)

 

b == {1, 2, 3, 1, 0, 1, 4, 5, 6}

 

The same results can also be achieved with the .. operator:

Example

 

c = a[..]

c == {1, 2, 3, 1, 0, 1, 4, 5, 6}