Integration of Numeric Data - MATLAB & Simulink
www.mathworks.com › help › matlabIntegration of Numeric Data. Open Live Script. This example shows how to integrate a set of discrete velocity data numerically to approximate the distance traveled. The integral family only accepts function handles as inputs, so those functions cannot be used with discrete data sets. Use trapz or cumtrapz when a functional expression is not ...