Skip to content

integabs

Numerical integration of |Y| with respect to X.

M = integabs(X, Y)
M = integabs(X, Y, flag)

Returns ∫|Y| dX computed via the trapezoidal rule. Useful for measuring total accumulated magnitude regardless of sign.

MathJet-specific (not in MATLAB).

x = linspace(0, 2*pi, 100);
integabs(x, sin(x)) % ≈ 4 (sum of |sin| over a full period)
  • integ — Numerical integration over Y with respect to X.

Also categorized under: Range Functions / Math.