Navigation: Language Reference > Functions > Arithmetic >
y = limit(x,a,b);
This function limits the signal x between a minimum of a and a maximum of b.
x = 10*sin(time);
y = limit(x,-5,5);
a,b,x and y must be scalars. a must be smaller than b.