Given a vector, this function generates a two-column matrix in which each row contains an element and its consecutive neighbor.
a vector of elements
a matrix with two columns. The first column is identical to elements with the last element taken off. And second column holds the next consecutive element.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.