integabs
Numerical integration of |Y| with respect to X.
Syntax
Section titled “Syntax”M = integabs(X, Y)M = integabs(X, Y, flag)Description
Section titled “Description”Returns ∫|Y| dX computed via the trapezoidal rule. Useful for measuring total accumulated magnitude regardless of sign.
MathJet-specific (not in MATLAB).
Examples
Section titled “Examples”x = linspace(0, 2*pi, 100);integabs(x, sin(x)) % ≈ 4 (sum of |sin| over a full period)See also
Section titled “See also”integ— Numerical integration overYwith respect toX.
Also categorized under: Range Functions / Math.