trapz
Core Math
Trapezoidal numerical integration. Approximates the integral of y using the trapezoidal method. If x is provided, uses x as sample points.
Syntax
trapz(y)
trapz(y, x)
Examples
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab