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 ...
Integration of numerical data
www.mathworks.com › matlabcentral › answersMay 26, 2019 · Answers (2) Multiply the two vectors. Then call trapz. For vectors of data, the best option would be the trapz (link) or the related cumtrapz functions, depending on the result you want. Sign in to answer this question. Unable to complete the action because of changes made to the page.