This is where navigation should be.

DYNLIMIT - Limit the dynamical range of the input

Usage

xo=dynlimit(xi,dynrange);

Description

dynlimit(xi,dynrange) will threshold the input such that the difference between the maximum and minumum value of xi is exactly dynrange.