Example

 

ravel(1..12, 3)

 

produces a 4x3 array by dividing the one-dimensional input series into a table of 3 columns where each column contains 4 samples. The following array is returned:

 

 {{1, 5,  9},

  {2, 6, 10},

  {3, 7, 11},

  {4, 8, 12}}

Example

 

ravel(w1, 100, 1, 10)

 

ravels the one-dimensional series in W1 into multiple 100-point long segments. Each of these segments overlaps the previous segment by 10 points.

 

RAVEL also creates a matrix by "laminating" series together. That is, it takes several vectors, places them side by side, and treats them as the columns of a matrix.

Example

 

a = 1..3

b = {1, 0, 1}

c = {4..6}

d = ravel(a, b, c)

 

d == {{1, 1, 4},

   {2, 0, 5}, 

   {3, 1, 6}}