Function File: x = clip (x)
Function File: x = clip (x, hi)
Function File: x = clip (x, [lo, hi])

Clip x values outside the range.to the value at the boundary of the range.

Range boundaries, lo and hi, default to 0 and 1 respectively.

x = clip (x) Clip to range [0, 1]

x = clip (x, hi) Clip to range [0, hi]

x = clip (x, [lo, hi]) Clip to range [lo, hi]

Package: miscellaneous