limint

Navigation:  Language Reference > Functions > Arithmetic >

limint

Previous pageReturn to chapter overviewNext page

Syntax

y = limint(x,min,max,init);

Description

Returns the integral of x with respect to the time. The initial value of y is equal to the value of init. The output of this integral is limited between a maximum and minimum bound given by the parameters min and max.

 

This function forces the integration algorithm to find the exact point where the gets saturated. If the integral is in saturated condition and the input changes sign, the output wanders away from the bounds immediately.

 

The limitedIntegrator block is used for the prevention of wind-up in PI and PID controllers in control applications. It is also used in kinematics, electrical circuits, process control, and fluid dynamics.

Examples

x = 10*sin(time*10);

y = limint(x,-1,1,0);