Description Usage Arguments Value Author(s) Examples
This function shifts the elements of an array to the right and the top.
1 | shiftmat(x, dx = 0, dy = 0)
|
x |
2D array. |
dx |
Integer number. Number of grid points to shift the array to the north. Should be smaller than dim(x). Default is 0. |
dy |
Integer number. Number of grid points to shift the array to the west. Should be smaller than dim(x). Default is 0. |
Returns an array with shifted elements.
Sebastian Brune
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.