function shrink

Shrinks X or the specified axis of X by specified FACTOR

Syntax
result = shrink(X, FACTOR [, AXIS])

Arguments
X:   A matrix.
FACTOR:   An integer number.
AXIS:   optionally, which axis to shrink (1, 2, or 3)