integ
Perform time integration of expression
Parent Section: equations
Syntax
integ(expr,t_L)
Description
The integ
operator lets you perform time integration of an
expression in the equations
section of a Simscape™ file without declaring and initializing extra variables.
The full syntax is:
integ(expr,t_L)
where:
expr
is a Simscape language expression.t_L
is the lower integration limit, specified as a delay time relative to the current time. This operand is optional.
The upper integration limit is the current simulation time. If you omit the lower limit, the integration starts from the simulation start time.
expr
can be of any type. It will automatically be converted to a
double
.
The following restrictions apply:
expr
cannot containdelay
order
operators. Any time-dependency inexpr
is attributed to the integration variable.expr
is assumed to have zero history for times prior to start of simulation.t_L
must be a scalar nonnegative constant or parametric expression with the unit of time.
The return unit of integ
is the unit of its operand multiplied by a
unit of time.
Examples
Version History
Introduced in R2016a