function shrink

Shrinks X by specified FACTOR

Syntax
result = shrink(X, FACTOR)

Arguments
X:   A matrix.
FACTOR:   An integer number.