Bound

Syntax


y = bound(bb, tb, x)

Description


The output (y) is determined by limiting the input (x, which may be an expression) to fall within the range [bb, tb].

Example


! Clipped sin wave

y = bound(-0.5, 0.5, sin(t))