REBIN command

Syntax: REBIN v vout n
REBIN m mout nr nc

The REBIN command rebins the data in either:

the vector v by the compression factor n; or
the matrix m by the row compression factor nr and the column compression factor nc.

Rebin a vector
Rebin a matrix