imat_fn/integ


Purpose

Integrate the supplied imat_fn.

Syntax

g=integ(f)
g=integ(f,'freq')

Description

INTEG will differentiate 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 CUMTRAPZ function. If TYPE is set to 'freq', INTEG will perform 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 will result in an error.

INTEG will automatically modify 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