imat_fn/integ


Purpose

Integrate the supplied imat_fn.

Syntax

g=integ(f)
g=integ(f,'freq')
g=integ(f,'linlog')
g=integ(f,'freq','loglog')
g=integ(f,type,interptype)

Description

INTEG differentiates the supplied imat_fn F, and return the output in G. Two types of integration are supported. The default type is the simple "area under the curve". INTEG uses the trapezoidal rule to compute the integration, using the trapezoidal rule. If TYPE is set to 'freq', INTEG performs a frequency integration using the 1/i*omega operator. Note that frequency integration can only operate on functions with an AbscissaDataType of Frequency. Any other type results in an error.

INTERP is an optional input string specifying the type of interpolation to use when performing the integration. Valid values are 'linlin' (default), 'linlog', 'loglin', and 'loglog'.

INTEG automatically modifies the ordinate numerator data type from Acceleration to Velocity to Displacement to General. It also handles acceleration units in G's and EU's.

See Also

imat_fn/diff