The REDIM (or redim) command takes two arguments. They are either a matrix
and a list of two integers, or a vector and an integer.
REDIM returns the matrix or vector resized according to the
second argument; removing elements to make it shorter, if necessary, or
adding 0s to make it larger.
Input:
Output:
Input:
Output:
Input:
Output:
Input:
Output: