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:
expris a Simscape language expression.t_Lis 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:
exprcannot containdelayorderoperators. Any time-dependency inexpris attributed to the integration variable.expris assumed to have zero history for times prior to start of simulation.t_Lmust 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