limit

Navigation:  Language Reference > Functions > Arithmetic >

limit

Previous pageReturn to chapter overviewNext page

Syntax

y = limit(x,a,b);

Description

This function limits the signal x between a minimum of a and a maximum of b.

Limit

Examples

x = 10*sin(time);

y = limit(x,-5,5);

Limitations

a,b,x and y must be scalars. a must be smaller than b.